Commit 941f4e31 authored by Themis Zamani's avatar Themis Zamani

travis-ci test for ansible

parent 2d7a1e39
......@@ -15,8 +15,10 @@ 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
#- cd ansible/roles/common/tests && ansible-playbook -i inventory test.yml --syntax-check
#- ansible-playbook -i inventory test.yml --connection=local --sudo
#- "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)"
- cd ansible/roles/apache-flink/tests && ansible-playbook -i inventory test.yml --syntax-check
- ansible-playbook -i inventory test.yml --connection=local --sudo
---
- hosts: localhost
remote_user: root
roles:
- { role: ../../apache-flink, sudo: Yes }
localhost
[master]
[slaves]
\ No newline at end of file
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