forked from William-Yeh/ansible-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
123 lines (103 loc) · 6.37 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
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-v2-ubuntu16.04 -t prometheus_v2_xenial .
- docker build -f test/Dockerfile-v2-ubuntu14.04 -t prometheus_v2_trusty .
- docker build -f test/Dockerfile-v2-ubuntu12.04 -t prometheus_v2_precise .
- docker build -f test/Dockerfile-v2-debian8 -t prometheus_v2_jessie .
- docker build -f test/Dockerfile-v2-debian7 -t prometheus_v2_wheezy .
- docker build -f test/Dockerfile-v2-centos7 -t prometheus_v2_centos7 .
- docker build -f test/Dockerfile-v2-centos6 -t prometheus_v2_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_v2_xenial
- docker run -v $(pwd):/data prometheus_v2_trusty
- docker run -v $(pwd):/data prometheus_v2_precise
- docker run -v $(pwd):/data prometheus_v2_jessie
- docker run -v $(pwd):/data prometheus_v2_wheezy
- docker run -v $(pwd):/data prometheus_v2_centos7
- docker run -v $(pwd):/data prometheus_v2_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-v2-ubuntu16.04
- grep '^node_boot_time' result-v2-ubuntu14.04
- grep '^node_boot_time' result-v2-ubuntu12.04
- grep '^node_boot_time' result-v2-debian8
- grep '^node_boot_time' result-v2-debian7
- grep '^node_boot_time' result-v2-centos7
- grep '^node_boot_time' result-v2-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-v2-ubuntu16.04
- grep '^prometheus_target_interval_length_seconds' result-v2-ubuntu14.04
- grep '^prometheus_target_interval_length_seconds' result-v2-ubuntu12.04
- grep '^prometheus_target_interval_length_seconds' result-v2-debian8
- grep '^prometheus_target_interval_length_seconds' result-v2-debian7
- grep '^prometheus_target_interval_length_seconds' result-v2-centos7
- grep '^prometheus_target_interval_length_seconds' result-v2-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-v2-ubuntu16.04
- grep '<title>AlertManager' result-v2-ubuntu14.04
- grep '<title>AlertManager' result-v2-ubuntu12.04
- grep '<title>AlertManager' result-v2-debian8
- grep '<title>AlertManager' result-v2-debian7
- grep '<title>AlertManager' result-v2-centos7
- grep '<title>AlertManager' result-v2-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/