19 lines
351 B
YAML
Executable file
19 lines
351 B
YAML
Executable file
---
|
|
language: python
|
|
python: "2.7"
|
|
|
|
env:
|
|
- SITE=test.yml
|
|
|
|
before_install:
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -y curl
|
|
|
|
install:
|
|
- pip install ansible
|
|
|
|
# Add ansible.cfg to pick up roles path.
|
|
- "printf '[defaults]\nroles_path = ../' > ansible.cfg"
|
|
|
|
script:
|
|
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
|