You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
513 B

---
language: python
python: "2.7"
install:
- pip install ansible
script:
- ansible-playbook -i localhost, tests.yml --syntax-check
- ansible-playbook -i localhost, tests.yml --connection=local --sudo
- >
ansible-playbook -i localhost, tests.yml --connection=local --sudo
| grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/