forked from William-Yeh/ansible-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
78 lines (68 loc) · 3.93 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
sudo: true
services:
- docker
before_install:
- docker info
- docker version
- docker build -f test/Dockerfile-ubuntu16.04 -t prometheus_xenial .
- docker build -f test/Dockerfile-ubuntu14.04 -t prometheus_trusty .
- docker build -f test/Dockerfile-ubuntu12.04 -t prometheus_precise .
- docker build -f test/Dockerfile-debian8 -t prometheus_jessie .
- docker build -f test/Dockerfile-debian7 -t prometheus_wheezy .
- docker build -f test/Dockerfile-centos7 -t prometheus_centos7 .
- docker build -f test/Dockerfile-centos6 -t prometheus_centos6 .
- docker build -f test/Dockerfile-ubuntu16.04-git -t prometheus_xenial_git .
- docker build -f test/Dockerfile-ubuntu14.04-git -t prometheus_trusty_git .
- docker build -f test/Dockerfile-debian8-git -t prometheus_jessie_git .
- docker build -f test/Dockerfile-centos7-git -t prometheus_centos7_git .
script:
- docker run -v $(pwd):/data prometheus_xenial
- docker run -v $(pwd):/data prometheus_trusty
- docker run -v $(pwd):/data prometheus_precise
- docker run -v $(pwd):/data prometheus_jessie
- docker run -v $(pwd):/data prometheus_wheezy
- docker run -v $(pwd):/data prometheus_centos7
- docker run -v $(pwd):/data prometheus_centos6
- docker run -v $(pwd):/data prometheus_xenial_git
- docker run -v $(pwd):/data prometheus_trusty_git
- docker run -v $(pwd):/data prometheus_jessie_git
- docker run -v $(pwd):/data prometheus_centos7_git
- echo "==> Validating the test results..."
- grep '^node_boot_time' result-ubuntu16.04
- grep '^node_boot_time' result-ubuntu14.04
- grep '^node_boot_time' result-ubuntu12.04
- grep '^node_boot_time' result-debian8
- grep '^node_boot_time' result-debian7
- grep '^node_boot_time' result-centos7
- grep '^node_boot_time' result-centos6
- grep '^node_boot_time' result-ubuntu16.04-git
- grep '^node_boot_time' result-ubuntu14.04-git
- grep '^node_boot_time' result-debian8-git
- grep '^node_boot_time' result-centos7-git
- grep '^prometheus_target_interval_length_seconds' result-ubuntu16.04
- grep '^prometheus_target_interval_length_seconds' result-ubuntu14.04
- grep '^prometheus_target_interval_length_seconds' result-ubuntu12.04
- grep '^prometheus_target_interval_length_seconds' result-debian8
- grep '^prometheus_target_interval_length_seconds' result-debian7
- grep '^prometheus_target_interval_length_seconds' result-centos7
- grep '^prometheus_target_interval_length_seconds' result-centos6
- grep '^prometheus_target_interval_length_seconds' result-ubuntu16.04-git
- grep '^prometheus_target_interval_length_seconds' result-ubuntu14.04-git
- grep '^prometheus_target_interval_length_seconds' result-debian8-git
- grep '^prometheus_target_interval_length_seconds' result-centos7-git
#-------------------------
# for alertmanager
#
- grep '<title>AlertManager' result-ubuntu16.04
- grep '<title>AlertManager' result-ubuntu14.04
- grep '<title>AlertManager' result-ubuntu12.04
- grep '<title>AlertManager' result-debian8
- grep '<title>AlertManager' result-debian7
- grep '<title>AlertManager' result-centos7
- grep '<title>AlertManager' result-centos6
- grep '<title>AlertManager' result-ubuntu16.04-git
- grep '<title>AlertManager' result-ubuntu14.04-git
- grep '<title>AlertManager' result-debian8-git
- grep '<title>AlertManager' result-centos7-git
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/