aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorThéophile Helleboid - chtitux <chtitux@gmail.com>2020-05-12 21:32:14 +0400
committerGitHub <noreply@github.com>2020-05-12 21:32:14 +0400
commitebe451adda84672f9872187164df279dbfed7a35 (patch)
tree4f5ce44e988bebf91f1b21fe7f9dc0f49843624f /.travis.yml
parentb9038ad7484a472f1e745906fb0d26530061b58d (diff)
parent61b4552ae3514a7ae94591a85c4708ac0d7db078 (diff)
downloadansible-postgresql-role-ebe451adda84672f9872187164df279dbfed7a35.tar.gz
ansible-postgresql-role-ebe451adda84672f9872187164df279dbfed7a35.tar.zst
ansible-postgresql-role-ebe451adda84672f9872187164df279dbfed7a35.zip
Merge pull request #11 from paulrbr-fl/postgresql-12
core: Add compatibility with PG 12 major version
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index ddf6fb0..b7ce10f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,16 @@
1--- 1---
2dist: bionic
2language: python 3language: python
3python: "3.5" 4python: "3.8"
4 5
5# Use the new container infrastructure 6# Test on all supported PG versions on both debian stretch and debian buster
6sudo: false 7env:
8- POSTGRESQL_VERSION=10 DEBIAN_RELEASE=stretch
9- POSTGRESQL_VERSION=11 DEBIAN_RELEASE=stretch
10- POSTGRESQL_VERSION=12 DEBIAN_RELEASE=stretch
11- POSTGRESQL_VERSION=10 DEBIAN_RELEASE=buster
12- POSTGRESQL_VERSION=11 DEBIAN_RELEASE=buster
13- POSTGRESQL_VERSION=12 DEBIAN_RELEASE=buster
7 14
8# Install pip 15# Install pip
9addons: 16addons:
@@ -17,7 +24,7 @@ services:
17 24
18install: 25install:
19 # Install ansible 26 # Install ansible
20 - pip install ansible docker-py docker 27 - pip install -r test/requirements.txt
21 # Check ansible version 28 # Check ansible version
22 - ansible --version 29 - ansible --version
23 - ansible-galaxy install -r test/requirements.yml -p test/roles/ 30 - ansible-galaxy install -r test/requirements.yml -p test/roles/
@@ -26,6 +33,7 @@ script:
26 # Basic role syntax check 33 # Basic role syntax check
27 - ansible-playbook test/main.yml -i test/hosts --syntax-check 34 - ansible-playbook test/main.yml -i test/hosts --syntax-check
28 # Run the tests 35 # Run the tests
36 - 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 37 # FAILS - ansible-playbook test/main.yml -i test/hosts
30 # Even if Docker and docker-py module are present, the tests fail on Travis 38 # Even if Docker and docker-py module are present, the tests fail on Travis
31 # The error on Travis is: 39 # The error on Travis is: