Add Travis CI integration.

This commit is contained in:
Jeff Geerling 2014-04-22 07:39:07 -05:00
parent c9f5637003
commit 489dc306bb
3 changed files with 21 additions and 0 deletions

12
.travis.yml Normal file
View file

@ -0,0 +1,12 @@
---
language: python
python: "2.7"
env:
- SITE=test.yml
before_install:
- sudo apt-get update -qq
install:
- pip install ansible==1.5.0
script:
- ansible-playbook -i tests/inventory tests/$SITE --syntax-check
- ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo

1
tests/inventory Normal file
View file

@ -0,0 +1 @@
localhost

8
tests/test.yml Normal file
View file

@ -0,0 +1,8 @@
---
- hosts: all
vars_files:
- '../vars/main.yml'
tasks:
- include: '../tasks/main.yml'
handlers:
- include: '../handlers/main.yml'