diff options
author | Paul B <paul@bonaud.fr> | 2019-01-28 16:03:15 +0100 |
---|---|---|
committer | Paul B <paul@bonaud.fr> | 2019-01-29 11:42:41 +0100 |
commit | 6037b0f8ec62eaad728ee617418968ea324eb44c (patch) | |
tree | 0a11b837ad8739326ba923793da3124d37773afd /.travis.yml | |
parent | dd54b74860fd9db85807619109b000b16b9bf52e (diff) | |
download | ansible-postgresql-role-6037b0f8ec62eaad728ee617418968ea324eb44c.tar.gz ansible-postgresql-role-6037b0f8ec62eaad728ee617418968ea324eb44c.tar.zst ansible-postgresql-role-6037b0f8ec62eaad728ee617418968ea324eb44c.zip |
tests: fix test playbook due to barman <-> postgres circle dependencies
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index c424411..ddf6fb0 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -11,6 +11,10 @@ addons: | |||
11 | packages: | 11 | packages: |
12 | - python-pip | 12 | - python-pip |
13 | 13 | ||
14 | # Tests are using docker to spawn fake instances | ||
15 | services: | ||
16 | - docker | ||
17 | |||
14 | install: | 18 | install: |
15 | # Install ansible | 19 | # Install ansible |
16 | - pip install ansible docker-py docker | 20 | - pip install ansible docker-py docker |
@@ -22,7 +26,10 @@ script: | |||
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 |
24 | # Run the tests | 28 | # Run the tests |
25 | - ansible-playbook test/main.yml -i test/hosts | 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)"} | ||
26 | 33 | ||
27 | notifications: | 34 | notifications: |
28 | webhooks: https://galaxy.ansible.com/api/v1/notifications/ | 35 | webhooks: https://galaxy.ansible.com/api/v1/notifications/ |