-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
44 lines (38 loc) · 1.81 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
---
language: python
python: "2.7"
sudo: false
addons:
apt:
packages:
- php-cli
- php-common
- php-curl
install:
# Install Ansible.
- pip install ansible==1.9.4
# Add ansible.cfg to pick up roles path.
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
# Install required dependencies.
- ansible-galaxy install geerlingguy.php
script:
# Check the role/playbook's syntax.
#- "ansible-playbook -i tests/inventory tests/test_2_1.yml --syntax-check"
#- "ansible-playbook -i tests/inventory tests/test_2_2.yml --syntax-check"
#- "ansible-playbook -i tests/inventory tests/test_2_3.yml --syntax-check"
#- "ansible-playbook -i tests/inventory tests/test_2_4.yml --syntax-check"
- "ansible-playbook -i tests/inventory tests/test_2_5.yml --syntax-check"
- "ansible-playbook -i tests/inventory tests/test_2_6.yml --syntax-check"
- "ansible-playbook -i tests/inventory tests/test_2_7.yml --syntax-check"
- "ansible-playbook -i tests/inventory tests/test_2_8.yml --syntax-check"
- "ansible-playbook -i tests/inventory tests/test_3_0.yml --syntax-check"
# Run playbooks
#- "ansible-playbook -i tests/inventory tests/test_2_1.yml --connection=local"
#- "ansible-playbook -i tests/inventory tests/test_2_2.yml --connection=local"
#- "ansible-playbook -i tests/inventory tests/test_2_3.yml --connection=local"
#- "ansible-playbook -i tests/inventory tests/test_2_4.yml --connection=local"
- "ansible-playbook -i tests/inventory tests/test_2_5.yml --connection=local"
- "ansible-playbook -i tests/inventory tests/test_2_6.yml --connection=local"
- "ansible-playbook -i tests/inventory tests/test_2_7.yml --connection=local"
- "ansible-playbook -i tests/inventory tests/test_2_8.yml --connection=local"
#- "ansible-playbook -i tests/inventory tests/test_3_0.yml --connection=local"