Skip to content

Commit bbcc279

Browse files
author
Roderik van der Veer
committed
Add travis testing
1 parent 75d4eed commit bbcc279

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
language: objective-c
3+
4+
os:
5+
- osx
6+
7+
osx_image: xcode7
8+
9+
install:
10+
- sudo easy_install pip
11+
- sudo pip install ansible
12+
- mkdir -p /tmp/roles
13+
- "{ echo '[defaults]'; echo 'roles_path = ../:/tmp/roles'; } >> ansible.cfg"
14+
- ansible-galaxy install -f -r tests/requirements.yml -p /tmp/roles
15+
16+
script:
17+
- "ansible-playbook -i tests/inventory tests/travis.yml --syntax-check"
18+
- "ansible-playbook -i tests/inventory tests/travis.yml --connection=local"

tests/inventory

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost

tests/requirements.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
3+
- src: roderik.superlumic-homebrew

tests/travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
- hosts: 127.0.0.1
3+
connection: local
4+
5+
roles:
6+
- ansible-role-mysql

0 commit comments

Comments
 (0)