forked from icaria36/ansible-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 898 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
32
33
34
35
36
language: php
php:
- 5.4
before_install:
- sudo FORCE_ADD_APT_REPOSITORY=1 add-apt-repository ppa:rquillo/ansible
- sudo apt-get update
install:
- sudo apt-get install ansible
before_script:
# For the syntax check to work we need some fake vars
- mkdir /home/travis/build/Orain/private
- cp /home/travis/build/Orain/ansible-playbook/.travis.vars.yml /home/travis/build/Orain/private/vars.yml
script:
# Check playbook syntax
- sudo ansible-playbook -i production local.yml --syntax-check
# Check php script syntax
- bash .travis.phplint.sh
notifications:
irc:
channels:
- "chat.freenode.net#orain"
on_success: change
on_failure: always
skip_join: true
template:
- "%{repository}/%{branch}/%{commit} - %{author} %{message} %{build_url}"
email:
recipients:
on_success: change
on_failure: always