-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
52 lines (39 loc) · 1.11 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
sudo: required
language: generic
services:
- docker
script:
- wget -O- http://travis.debian.net/script.sh | sh -
branches:
except:
- /^debian\/\d/
addons:
apt:
sources:
- sourceline: 'deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main'
packages:
- python-software-properties
- python-pip
- ansible
install:
# Update pip
#- pip install -U pip
# Upgrade to the latest version of the Cryptography module
#- pip install cryptography --upgrade
# Install ansible
#- pip install ansible
# don't use travis virtualenv, as ansible does not do so either
# and couldn't find the docker package that way
#- sudo /usr/bin/pip install docker-py
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Ansible version
- ansible --version
# Check syntax
- ansible-playbook --syntax-check -i tests/inventory tests/test.yml
# First run
- ansible-playbook -i tests/inventory tests/test.yml --connection=local --sudo
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/