Commit 2cd7d919 by John Jarvis

updating travis to test all roles

parent 7cfd6087
...@@ -24,9 +24,17 @@ script: ...@@ -24,9 +24,17 @@ script:
fi fi
done done
- | - |
plays="aws bastion certs commoncluster common demo devpi discern edx_ansible elasticsearch forum ora rabbitmq worker xqueue xserver"
set -e set -e
cd playbooks/edx-east cd playbooks/edx-east
for play in $plays; do ROLE_DIRS=$(/bin/ls -d roles/*)
ansible-playbook -i localhost, --syntax-check ${play}.yml cat <<EOF >travis-test.yml
- name: Play to test all roles
hosts: all
roles:
EOF
for role_dir in $ROLE_DIRS; do
echo " - $(basename $role_dir)" >> travis-test.yml
done done
ansible-playbook -i localhost, --syntax-check travis-test.yml
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