From 6037b0f8ec62eaad728ee617418968ea324eb44c Mon Sep 17 00:00:00 2001 From: Paul B Date: Mon, 28 Jan 2019 16:03:15 +0100 Subject: tests: fix test playbook due to barman <-> postgres circle dependencies --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index c424411..ddf6fb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,10 @@ addons: packages: - python-pip +# Tests are using docker to spawn fake instances +services: + - docker + install: # Install ansible - pip install ansible docker-py docker @@ -22,7 +26,10 @@ script: # Basic role syntax check - ansible-playbook test/main.yml -i test/hosts --syntax-check # Run the tests - - ansible-playbook test/main.yml -i test/hosts + # FAILS - ansible-playbook test/main.yml -i test/hosts + # Even if Docker and docker-py module are present, the tests fail on Travis + # The error on Travis is: + # => {"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)"} notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ -- cgit v1.2.3