forked from William-Yeh/ansible-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
88 lines (73 loc) · 3.95 KB
/
circle.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
machine:
services:
- docker
dependencies:
override:
- docker info
- docker version
- 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-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 .
test:
override:
- 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_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-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-ubuntu14.04-git
- grep '^node_boot_time' result-debian8-git
- grep '^node_boot_time' result-centos7-git
- 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-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-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-ubuntu14.04-git
- grep '<title>AlertManager' result-debian8-git
- grep '<title>AlertManager' result-centos7-git
#-------------------------
# for consul_exporter
#
- grep '^consul_catalog_services' result-ubuntu14.04
- grep '^consul_catalog_services' result-ubuntu14.04-git
# Consul role does not yet support Ubuntu 12.04
# - grep '^consul_catalog_services' result-ubuntu12.04
# Centos Docker image is not running SystemD so the Consul role fails
# - grep '^consul_catalog_services' result-centos7
# - grep '^consul_catalog_services' result-centos7-git
# Consul role does not yet support centos6 or debian
# - grep '^consul_catalog_services' result-centos6
# - grep '^consul_catalog_services' result-debian8
# - grep '^consul_catalog_services' result-debian7
# - grep '^consul_catalog_services' result-debian8-git