aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorPaul B <paul+gh@bonaud.fr>2019-01-29 15:45:25 +0100
committerGitHub <noreply@github.com>2019-01-29 15:45:25 +0100
commit0c83dd00b4110d55b1602ca8d732a8cb414cfd0a (patch)
tree5191176c7f7226def631feb0f6cdc2a12045f0e4 /.travis.yml
parent2bedf1bbf762903d955e4a76f674799a6acb2258 (diff)
parent7b241a44e602d70c97e9b9e5af4b600ff7eb3651 (diff)
downloadansible-postgresql-role-0c83dd00b4110d55b1602ca8d732a8cb414cfd0a.tar.gz
ansible-postgresql-role-0c83dd00b4110d55b1602ca8d732a8cb414cfd0a.tar.zst
ansible-postgresql-role-0c83dd00b4110d55b1602ca8d732a8cb414cfd0a.zip
Merge pull request #6 from paulRbr/pg-extensions1.4.0
feat(extensions): adds creation of extension on databases if needed
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 7a72289..ddf6fb0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,9 +11,13 @@ addons:
11 packages: 11 packages:
12 - python-pip 12 - python-pip
13 13
14# Tests are using docker to spawn fake instances
15services:
16 - docker
17
14install: 18install:
15 # Install ansible 19 # Install ansible
16 - pip install ansible 20 - pip install ansible docker-py docker
17 # Check ansible version 21 # Check ansible version
18 - ansible --version 22 - ansible --version
19 - ansible-galaxy install -r test/requirements.yml -p test/roles/ 23 - ansible-galaxy install -r test/requirements.yml -p test/roles/
@@ -21,6 +25,11 @@ install:
21script: 25script:
22 # Basic role syntax check 26 # Basic role syntax check
23 - ansible-playbook test/main.yml -i test/hosts --syntax-check 27 - ansible-playbook test/main.yml -i test/hosts --syntax-check
28 # Run the tests
29 # FAILS - ansible-playbook test/main.yml -i test/hosts
30 # Even if Docker and docker-py module are present, the tests fail on Travis
31 # The error on Travis is:
32 # => {"changed": false, "item": {"image": "python:3.7-stretch", "links": ["postgres_barman", "postgres_one"], "name": "postgres_three"}, "msg": "Failed to import docker or docker-py - No module named docker. Try `pip install docker` or `pip install docker-py` (Python 2.6)"}
24 33
25notifications: 34notifications:
26 webhooks: https://galaxy.ansible.com/api/v1/notifications/ 35 webhooks: https://galaxy.ansible.com/api/v1/notifications/