-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
81 lines (75 loc) · 3.15 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
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="amazon"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="arch"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="centos6"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="centos7"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="centos8"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="debian9"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="debian10"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="ubuntu16"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="ubuntu18"'
- python: "3.7"
env: 'ANSIBLE_VERSION="ansible~=2.8.0" ANSIBLE_LIMIT="ubuntu20"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="amazon"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="arch"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="centos6"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="centos7"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="centos8"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="debian9"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="debian10"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="ubuntu16"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="ubuntu18"'
- env: 'ANSIBLE_VERSION="ansible~=2.9.0" ANSIBLE_LIMIT="ubuntu20"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="amazon"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="arch"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="centos6"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="centos7"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="centos8"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="debian9"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="debian10"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="ubuntu16"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="ubuntu18"'
- env: 'ANSIBLE_VERSION="ansible~=2.10.0" ANSIBLE_LIMIT="ubuntu20"'
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