Skip to content

Commit 326086d

Browse files
author
Roderik van der Veer
committed
Merge pull request #1 from superlumic/travis-testing
Add travis testing
2 parents acebc99 + e46d0f8 commit 326086d

File tree

6 files changed

+40
-0
lines changed

6 files changed

+40
-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"

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Ansible role to sets up a complete CLI environment on OSX. This role is part of
66

77
* OSX 10.10 or 10.11
88

9+
## Role variables
10+
11+
```yaml
12+
git_user_name: Your Name
13+
git_user_email: your@email.address
14+
```
15+
916
## Dependencies
1017
1118
* [roderik.superlumic-homebrew](https://github.com/superlumic/ansible-role-homebrew)

defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
git_user_name: Your Name
4+
git_user_email: your@email.address

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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
- src: roderik.superlumic-homebrew
4+
- src: roderik.superlumic-osx-defaults

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-cli

0 commit comments

Comments
 (0)