diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index ddf6fb0..c84bc80 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,9 +1,20 @@ | |||
1 | --- | 1 | --- |
2 | dist: bionic | ||
2 | language: python | 3 | language: python |
3 | python: "3.5" | 4 | python: "3.8" |
4 | 5 | ||
5 | # Use the new container infrastructure | 6 | # Test on all supported PG versions on both debian stretch and debian buster |
6 | sudo: false | 7 | env: |
8 | - POSTGRESQL_VERSION=9.5 DEBIAN_RELEASE=stretch | ||
9 | - POSTGRESQL_VERSION=9.6 DEBIAN_RELEASE=stretch | ||
10 | - POSTGRESQL_VERSION=10 DEBIAN_RELEASE=stretch | ||
11 | - POSTGRESQL_VERSION=11 DEBIAN_RELEASE=stretch | ||
12 | - POSTGRESQL_VERSION=12 DEBIAN_RELEASE=stretch | ||
13 | - POSTGRESQL_VERSION=9.5 DEBIAN_RELEASE=buster | ||
14 | - POSTGRESQL_VERSION=9.6 DEBIAN_RELEASE=buster | ||
15 | - POSTGRESQL_VERSION=10 DEBIAN_RELEASE=buster | ||
16 | - POSTGRESQL_VERSION=11 DEBIAN_RELEASE=buster | ||
17 | - POSTGRESQL_VERSION=12 DEBIAN_RELEASE=buster | ||
7 | 18 | ||
8 | # Install pip | 19 | # Install pip |
9 | addons: | 20 | addons: |
@@ -17,7 +28,7 @@ services: | |||
17 | 28 | ||
18 | install: | 29 | install: |
19 | # Install ansible | 30 | # Install ansible |
20 | - pip install ansible docker-py docker | 31 | - pip install -r test/requirements.txt |
21 | # Check ansible version | 32 | # Check ansible version |
22 | - ansible --version | 33 | - ansible --version |
23 | - ansible-galaxy install -r test/requirements.yml -p test/roles/ | 34 | - ansible-galaxy install -r test/requirements.yml -p test/roles/ |
@@ -26,6 +37,7 @@ script: | |||
26 | # Basic role syntax check | 37 | # Basic role syntax check |
27 | - ansible-playbook test/main.yml -i test/hosts --syntax-check | 38 | - ansible-playbook test/main.yml -i test/hosts --syntax-check |
28 | # Run the tests | 39 | # Run the tests |
40 | - ansible-playbook test/main.yml -i test/hosts -e "postgres_version=${POSTGRESQL_VERSION}" -e "debian_release=${DEBIAN_RELEASE}" | ||
29 | # FAILS - ansible-playbook test/main.yml -i test/hosts | 41 | # FAILS - ansible-playbook test/main.yml -i test/hosts |
30 | # Even if Docker and docker-py module are present, the tests fail on Travis | 42 | # Even if Docker and docker-py module are present, the tests fail on Travis |
31 | # The error on Travis is: | 43 | # The error on Travis is: |