Skip to content

Commit

Permalink
Merge pull request jloh#7 from Mooash/travis-ci
Browse files Browse the repository at this point in the history
Adding CI tests
  • Loading branch information
James committed Apr 15, 2015
2 parents 9266bcd + d6320e2 commit 2a84d61
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
language: python
python: '2.7'

env:
matrix:
- SITE=local_host.yml

before_install:
- sudo apt-get update -qq

install:
- pip install ansible
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"

script:
- ansible-playbook -i meta/tests/inventory meta/tests/$SITE --syntax-check
- ansible-playbook -i meta/tests/inventory meta/tests/$SITE --connection=local --sudo

notifications:
email:
recipients:
secure: LgLB0UUyy7ly2WXeVXKdOxYYsTlWiddQwOgc2EoHgpDPecj+d/sm8TnNaVMr7/TFwinMeewCKlO7w8flLm3N4gHMw3ru5x4gZJCIoOUUFG7Nm8kmcYj3zKTvjEsSVfR+7N8Su6jK6PKgBejL4WbH2Is8fLriV4pSye8r7QsdL60=
on_success: always
on_failure: always
hipchat:
rooms:
secure: Xpubf07CxVs1Odkxq8NzCAqQqmqp17FIBUz+r/KWqO3cTNCUtFNio6GNo+eKmINHV6HBBEnW/WKKCKlMAgKcds1eMrkgStMKVUIg6Ev7gCqlLZpPPDeZLSwyfbpIStPAii9Fj3TYH+bxtBVLeMdWQjX835xElfQEePGUeS2W29A=
notify: true
1 change: 1 addition & 0 deletions meta/tests/inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost
5 changes: 5 additions & 0 deletions meta/tests/local_host.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- nagios-nrpe-server

0 comments on commit 2a84d61

Please sign in to comment.