Commit fd5ed892 authored by Themis Zamani's avatar Themis Zamani

travis-ci test for ansible

parent 513a393c
......@@ -16,5 +16,7 @@ install:
script:
# We'll add some commands to test the role here.
- cd ansible/roles/common/tests && ansible-playbook -i inventory test.yml --syntax-check
- ansible-playbook -i inventory test.yml --connection=local --sudo | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
#- ansible-playbook -i inventory test.yml --connection=local --sudo | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
- "ansible-playbook -i inventory test.yml --connection=local --sudo | tee /tmp/output.txt; grep -q 'changed=0.*failed=0' /tmp/output.txt && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment