forked from Oefenweb/ansible-percona-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (72 loc) · 3.35 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
82
---
sudo: required
dist: trusty
language: python
python: "2.7"
env:
- ANSIBLE_VERSION=latest
- ANSIBLE_VERSION=2.7.6
- ANSIBLE_VERSION=2.7.5
- ANSIBLE_VERSION=2.7.4
- ANSIBLE_VERSION=2.7.3
- ANSIBLE_VERSION=2.7.2
- ANSIBLE_VERSION=2.7.1
- ANSIBLE_VERSION=2.7.0
- ANSIBLE_VERSION=2.6.12
- ANSIBLE_VERSION=2.6.11
- ANSIBLE_VERSION=2.6.10
- ANSIBLE_VERSION=2.6.9
- ANSIBLE_VERSION=2.6.8
- ANSIBLE_VERSION=2.6.7
- ANSIBLE_VERSION=2.6.6
- ANSIBLE_VERSION=2.6.5
- ANSIBLE_VERSION=2.6.4
- ANSIBLE_VERSION=2.6.3
- ANSIBLE_VERSION=2.6.2
- ANSIBLE_VERSION=2.6.1
- ANSIBLE_VERSION=2.6.0
- ANSIBLE_VERSION=2.5.14
- ANSIBLE_VERSION=2.5.13
- ANSIBLE_VERSION=2.5.12
- ANSIBLE_VERSION=2.5.11
- ANSIBLE_VERSION=2.5.10
- ANSIBLE_VERSION=2.5.9
- ANSIBLE_VERSION=2.5.8
- ANSIBLE_VERSION=2.5.7
- ANSIBLE_VERSION=2.5.6
- ANSIBLE_VERSION=2.5.5
- ANSIBLE_VERSION=2.5.4
- ANSIBLE_VERSION=2.5.3
- ANSIBLE_VERSION=2.5.2
- ANSIBLE_VERSION=2.5.1
- ANSIBLE_VERSION=2.5.0
branches:
only:
- master
before_install:
- sudo apt-get update -qq
install:
# Install Ansible.
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi
script:
# Check the role/playbook's syntax.
- ansible-playbook -i tests/inventory tests/test.yml --syntax-check
# Run the role/playbook with ansible-playbook.
- ansible-playbook -i tests/inventory tests/test.yml -vvvv
# Run the role/playbook again, checking to make sure it's idempotent.
- >
ansible-playbook -i tests/inventory tests/test.yml
| grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
- if [ "$ANSIBLE_VERSION" = "latest" ]; then ansible-lint tests/test.yml || true; fi
notifications:
email: false
hipchat:
rooms:
secure: wnP8RPWtAiHSFmcx6yA+wMwjMxWplcGltDgM3UGhC9vsd+dTPwKd5pfz2qGuBX7G0Ezs46diV3V+8MwzO648C4oIzS6JIcXTht9zkvnIpGVQuylYRfwGF+UQEESW+GEWGIw/HotR7+6+JCL4ATPPEMUQxpPlnqQzQy3BAUofXcGbklcrXEp2vop82vCwONy0NTv2hPtHULwCU5JySVih2qaRgQuSl64NDpQf43nzrsB1jxaA6UCqNGTezyAFwZ3SYPnfPQRKX34yZHVNyegziLwQie4GGmuJS0jnEynrpiP2ZWyKEstsgBfl8UPtz7XlMF+/huSseEzkIdyu4gkPXOu6oGAJfLhJ6SVLlB6P87KhFk2o+UphjxrCZitwDAumUNQ/eZtm/h/ofMqjbMVRamEqqbdsCa2Q/9w6UEG4D44egmpiaSj8A9qV3p8d3nUiYe+bb6XJKVwaeqcSM79V4kCUetqz3BJhe/yjx2w7StYOs+UN8uDwz8talUJNrNA9m/uWv8pkRd8FYHN118ui2jsTGVAVH/LlCl4hFpcPqGV5oo9dzR3fiWvvQvsxr0xBZAHgouw1JmbiEaDjoF1ZmXpofr6DQGQ93ZOo2Vcr4kGbDc5hLlJpuZkN2pkG7HgKm2fBaW2ou2Tpd6A94AGFOyy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