-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
36 lines (27 loc) · 959 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: python
python: "2.7"
sudo: required
dist: trusty
before_install:
# Remove MySQL. Completely and totally.
- sudo apt-get remove --purge 'mysql*' -y
- sudo apt-get autoremove -y
- sudo apt-get autoclean -y
- sudo rm -rf /var/lib/mysql
install:
# Install Ansible.
- pip install ansible
# Add ansible.cfg to set local roles path.
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
before_script:
- 'rm -rf $HOME/.gitconfig'
script:
# Make sure Ansible requirements install correctly.
- 'ansible-galaxy install -r requirements.yml --force'
# Run Ansible's syntax and playbook check on the main playbook.
- 'printf "test\n\rtest\n\r" | ansible-playbook -i "localhost," -c local main.yml --syntax-check'
# Run the playbook with ansible-playbook.
- 'printf "test\n\rtest\n\r" | ansible-playbook -i "localhost," -c local main.yml --sudo'
notifications:
slack: drupalway:VzYrnxxXG5JC8QUIasOpgDhq