Skip to content

Commit

Permalink
Fix Travis run
Browse files Browse the repository at this point in the history
Fix travis run and effectively test the playbooks.

Signed-off-by: Sébastien Han <[email protected]>
  • Loading branch information
Sébastien Han committed Jan 21, 2015
1 parent c7c7291 commit 965df55
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ install:

script:
# Check the role/playbook's syntax.
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
- "ansible-playbook -i inventory $SITE --syntax-check"

# Run the role/playbook with ansible-playbook.
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
- "ansible-playbook -i inventory $SITE --connection=local --sudo"

# Run the role/playbook again, checking to make sure it's idempotent.
- >
ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
ansible-playbook -i inventory $SITE --connection=local --sudo
| grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
Expand Down
9 changes: 0 additions & 9 deletions dummy-ansible-hosts

This file was deleted.

File renamed without changes.
10 changes: 0 additions & 10 deletions tests/test.yml

This file was deleted.

0 comments on commit 965df55

Please sign in to comment.