-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (28 loc) · 871 Bytes
/
.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
---
os: osx
osx_image:
# OS X 10.15
- xcode12
# OS X 10.14
- xcode11.2
language: generic
sudo: required
install:
- pip3 install --upgrade pip
- pip3 install ansible ansible-lint
env:
global:
- TEST_ANSIBLE_HOSTNAME: localhost
TEST_ANSIBLE_CONNECTION: local
PYTHON: 3.5.1
ANSIBLE_BECOME_PASS: travis
script:
- ansible-lint .
- ansible-playbook -i test/inventory test/playbook.yml --syntax-check
- ansible-playbook -i test/inventory test/playbook.yml --list-tasks
- ansible-playbook -i test/inventory test/playbook.yml --connection=local -vvvv
- 'ansible-playbook -i test/inventory test/playbook.yml --connection=local | grep -q "changed=0.*failed=0" &&
(echo "Idempotence test: pass" && exit 0) || (echo "Idempotence test: fail" && exit 1)'
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
...