forked from networklore/ansible-role-nagios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (36 loc) · 857 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
39
40
41
42
43
---
dist: trusty
language: python
sudo: required
cache:
pip: true
env:
global:
- fast_finish: true
matrix:
include:
- env: TAG=2.4 # 2.4.x security
- env: TAG=2.5 # 2.4.x bugs and security
- env: TAG=2.6 # 2.6.x bugs and security
- env: TAG=devel # Devel branch source install
services:
- docker
addons:
apt:
sources:
- docker-trusty
packages:
- docker-ce
before_script:
- sudo service docker stop
- sudo dockerd -H unix:///var/run/docker.sock -H tcp://127.0.0.1:2375 </dev/null &>/dev/null &
script:
- |
docker run --net=host -it -v $(pwd):/data/$(basename ~+) \
-w /data/$(basename ~+) \
lansible/ansible-dev-container:$TAG molecule --debug test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
email:
on_failure: change
on_success: never