-
Notifications
You must be signed in to change notification settings - Fork 147
/
.travis.yml
73 lines (65 loc) · 3.91 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
sudo: true
services:
- docker
before_install:
- docker info
- docker version
- docker build -f test/Dockerfile-ubuntu18.04 -t prometheus_bionic .
- 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-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-ubuntu18.04-git -t prometheus_bionic_git .
- 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_bionic
- docker run -v $(pwd):/data prometheus_xenial
- docker run -v $(pwd):/data prometheus_trusty
- 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_bionic_git
- 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-ubuntu18.04
- grep '^node_boot_time' result-ubuntu16.04
- grep '^node_boot_time' result-ubuntu14.04
- grep '^node_boot_time' result-debian8
- grep '^node_boot_time' result-debian7
- grep '^node_boot_time' result-centos7
- grep '^node_boot_time' result-ubuntu18.04-git
- 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-ubuntu18.04
- 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-debian8
- grep '^prometheus_target_interval_length_seconds' result-debian7
- grep '^prometheus_target_interval_length_seconds' result-centos7
- grep '^prometheus_target_interval_length_seconds' result-ubuntu18.04-git
- 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
- grep '^alertmanager_alerts' result-ubuntu18.04
- grep '^alertmanager_alerts' result-ubuntu16.04
- grep '^alertmanager_alerts' result-ubuntu14.04
- grep '^alertmanager_alerts' result-debian8
- grep '^alertmanager_alerts' result-debian7
- grep '^alertmanager_alerts' result-centos7
- grep '^alertmanager_alerts' result-ubuntu18.04-git
- grep '^alertmanager_alerts' result-ubuntu16.04-git
- grep '^alertmanager_alerts' result-ubuntu14.04-git
- grep '^alertmanager_alerts' result-debian8-git
- grep '^alertmanager_alerts' result-centos7-git
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/