forked from William-Yeh/ansible-consul-exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
47 lines (39 loc) · 2.01 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
sudo: true
services:
- docker
before_install:
- docker info
- docker version
- docker build -f test/Dockerfile-ubuntu14.04 -t consul_exporter_trusty .
- docker build -f test/Dockerfile-ubuntu12.04 -t consul_exporter_precise .
- docker build -f test/Dockerfile-debian8 -t consul_exporter_jessie .
- docker build -f test/Dockerfile-debian7 -t consul_exporter_wheezy .
- docker build -f test/Dockerfile-centos7 -t consul_exporter_centos7 .
- docker build -f test/Dockerfile-centos6 -t consul_exporter_centos6 .
- docker build -f test/Dockerfile-ubuntu14.04-git -t consul_exporter_trusty_git .
- docker build -f test/Dockerfile-debian8-git -t consul_exporter_jessie_git .
- docker build -f test/Dockerfile-centos7-git -t consul_exporter_centos7_git .
script:
- docker run -v $(pwd):/data consul_exporter_trusty
- docker run -v $(pwd):/data consul_exporter_precise
- docker run -v $(pwd):/data consul_exporter_jessie
- docker run -v $(pwd):/data consul_exporter_wheezy
- docker run -v $(pwd):/data consul_exporter_centos7
- docker run -v $(pwd):/data consul_exporter_centos6
- docker run -v $(pwd):/data consul_exporter_trusty_git
- docker run -v $(pwd):/data consul_exporter_jessie_git
- docker run -v $(pwd):/data consul_exporter_centos7_git
- echo "==> Validating the test results..."
- grep '^consul_up' result-ubuntu14.04
- grep '^consul_up' result-ubuntu12.04
- grep '^consul_up' result-centos7
- grep '^consul_up' result-centos6
- grep '^consul_up' result-debian8
- grep '^consul_up' result-debian7
- grep '^consul_up' result-ubuntu14.04-git
- grep '^consul_up' result-centos7-git
- grep '^consul_up' result-debian8-git
# Consul role does not yet support Ubuntu 12.04
# Consul role does not yet support centos6 or debian
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/