-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
38 lines (31 loc) · 924 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
sudo: required
language: objective-c
osx_image: xcode7.3
before_install:
- rm -rf /usr/local/Homebrew
- rm -rf /usr/local/Caskroom
- rm -rf /usr/local/bin/brew
install:
# Install pip.
- sudo easy_install pip
# Install ansible
- sudo pip install ansible
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
# Add a hosts file.
- sudo mkdir -p /etc/ansible
- sudo touch /etc/ansible/hosts
- "echo -e '[local]\nlocalhost ansible_connection=local' | sudo tee -a /etc/ansible/hosts > /dev/null"
script:
# Basic role syntax check
- ansible-galaxy install Shashikant86.iOS-Dev
- ansible-playbook tests/test.yml --syntax-check
- ansible-playbook -v tests/test.yml -K
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
email:
on_success: never
on_failure: never