mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-31 23:30:18 +01:00
15 lines
493 B
YAML
15 lines
493 B
YAML
---
|
|
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==1.5.0
|
|
script:
|
|
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
|
|
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
|
|
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo | grep -q 'changed=0.*failed=0' && exit 0 || exit 1"
|
|
- "curl http://localhost/"
|