Skip to content

Commit

Permalink
Merge pull request #1 from superlumic/travis-testing
Browse files Browse the repository at this point in the history
Add travis testing
  • Loading branch information
Roderik van der Veer committed Sep 27, 2015
2 parents 75d4eed + 47dfca1 commit 3046807
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
language: objective-c

os:
- osx

osx_image: xcode7

install:
- sudo easy_install pip
- sudo pip install ansible
- mkdir -p /tmp/roles
- "{ echo '[defaults]'; echo 'roles_path = ../:/tmp/roles'; } >> ansible.cfg"
- ansible-galaxy install -f -r tests/requirements.yml -p /tmp/roles

script:
- "ansible-playbook -i tests/inventory tests/travis.yml --syntax-check"
- "ansible-playbook -i tests/inventory tests/travis.yml --connection=local"
1 change: 0 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
homebrew: name={{ item }} state=latest
with_items:
- percona-server
- percona-toolkit

- name: install launchagents
file: src=/usr/local/opt/percona-server/homebrew.mxcl.percona-server.plist path=~/Library/LaunchAgents/homebrew.mxcl.percona-server.plist state=link force=yes
Expand Down
1 change: 1 addition & 0 deletions tests/inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost
3 changes: 3 additions & 0 deletions tests/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

- src: roderik.superlumic-homebrew
6 changes: 6 additions & 0 deletions tests/travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- hosts: 127.0.0.1
connection: local

roles:
- ansible-role-mysql

0 comments on commit 3046807

Please sign in to comment.