Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
cleanup test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Moser committed Sep 15, 2014
1 parent 28fe708 commit c54c9fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 38 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ before_install:
- sudo apt-get install -qq python-apt python-pycurl
install:
- pip install ansible
- "printf '[defaults]\nroles_path = ../' > ansible.cfg"
script:
- echo localhost > inventory
- ansible-playbook -i inventory --syntax-check --list-tasks role.yml
- ansible-playbook -i inventory --connection=local --sudo -vvvv role.yml
- echo localhost > tests/inventory
- ansible-playbook -i tests/inventory --syntax-check --list-tasks tests/role.yml
- ansible-playbook -i tests/inventory --connection=local --sudo -vvvv tests/role.yml
- >
ansible-playbook -i tests/inventory --connection=local --sudo tests/role.yml
| grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
33 changes: 0 additions & 33 deletions Vagrantfile

This file was deleted.

2 changes: 0 additions & 2 deletions ansible.cfg

This file was deleted.

File renamed without changes.

0 comments on commit c54c9fd

Please sign in to comment.