forked from geerlingguy/drupal-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (21 loc) · 876 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
---
language: python
python: "2.7"
install:
# Install Ansible.
- pip install ansible
# Add ansible.cfg to set local roles path.
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
script:
# Copy example files into place.
- cp example.config.yml config.yml
- cp example.drupal.make.yml drupal.make.yml
# Make sure Ansible requirements install correctly.
- 'ansible-galaxy install -r provisioning/requirements.txt'
# Run Ansible's syntax and playbook check on the main playbook.
- 'ansible-playbook -i "localhost," -c local provisioning/playbook.yml --syntax-check'
# Check the config file and drupal make file YAML syntax.
- >
python -c "import yaml; yaml.load( open('example.config.yml', 'r'), Loader=yaml.CLoader )"
- >
python -c "import yaml; yaml.load( open('example.drupal.make.yml', 'r'), Loader=yaml.CLoader )"