diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e62f083 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +--- +language: python +python: "2.7" + +before_install: + # Make sure everything's up to date. + - sudo apt-get update -qq + +install: + # Install Ansible + - pip install ansible + + # Add ansible.cfg to pick up role path + - "printf '[defaults]\nroles_path = ../' > ansible.cfg" + +script: + # We'll add some commands to test the role here. + # Check the role/playbook's syntax. + - ansible-playbook -i tests/inventory tests/test.yml --syntax-check