-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
65 lines (59 loc) · 2.71 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
if: branch = master
sudo: required
dist: bionic
language: python
python:
- "3.8"
services:
- docker
env:
global:
- ANSIBLE_CONFIG=tests/ansible.cfg
matrix:
include:
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="centos6,postgres"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="centos7,postgres"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="centos8,postgres"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="ubuntu16,postgres"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="ubuntu18,postgres"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="ubuntu20,postgres"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="centos6,postgres"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="centos7,postgres"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="centos8,postgres"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="ubuntu16,postgres"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="ubuntu18,postgres"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="ubuntu20,postgres"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="centos6,postgres" ANSIBLE_ACTION_PLUGINS="tests/action_plugins_210"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="centos7,postgres" ANSIBLE_ACTION_PLUGINS="tests/action_plugins_210"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="centos8,postgres" ANSIBLE_ACTION_PLUGINS="tests/action_plugins_210"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="ubuntu16,postgres" ANSIBLE_ACTION_PLUGINS="tests/action_plugins_210"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="ubuntu18,postgres" ANSIBLE_ACTION_PLUGINS="tests/action_plugins_210"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="ubuntu20,postgres" ANSIBLE_ACTION_PLUGINS="tests/action_plugins_210"'
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -o Dpkg::Options::="--force-confnew" docker-ce
install:
- sudo apt-get install -y sshpass software-properties-common
- pip install $ANSIBLE_VERSION
- pip install docker
- ansible-galaxy install -f -p tests/roles -r tests/roles/requirements.yml
- ansible --version
script:
- ansible-playbook -i tests/inventory tests/main.yml --syntax-check
- ansible-playbook -i tests/inventory -l $ANSIBLE_LIMIT tests/main.yml -vv
after_script:
- ansible-playbook -i tests/inventory tests/cleanup.yml
notifications:
webhooks:
urls:
- https://galaxy.ansible.com/api/v1/notifications/
on_success: always
on_failure: never
on_start: never