forked from DataDog/integrations-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
252 lines (249 loc) · 5.79 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
sudo: required
services:
- docker
language: python
python:
- '2.7.15'
addons:
apt:
packages:
- tdsodbc
cache:
directories:
- "$HOME/.cache/pip"
git:
depth: 3
branches:
only:
- master
env:
global:
- SKIP_CLEANUP=true
- PIP_CACHE=$HOME/.cache/pip
stages:
- name: test_changed
if: type = pull_request
- name: test
if: (branch = master) AND (type != pull_request)
script:
- travis_retry ddev test --cov ${CHECK}
- ddev test ${CHECK} --bench || true
# Conditional jobs are currently buggy and verbose.
#
# https://github.com/travis-ci/beta-features/issues/28
# https://github.com/travis-ci/beta-features/issues/40
# https://github.com/travis-ci/travis-ci/issues/8295
# https://github.com/travis-ci/travis-conditions/pull/1
# https://github.com/travis-ci/travis-ci/issues/6652
jobs:
fast_finish: true
include:
- stage: test_changed
script:
- ddev dep verify
- ddev manifest verify --include-extras
- ddev metadata verify
- ddev test --cov
- ddev test --bench || true
- stage: test
env: CHECK=datadog_checks_base PYTHON3=true
script:
- ddev dep verify
- ddev manifest verify --include-extras
- ddev metadata verify
- travis_retry ddev test --cov ${CHECK}
- ddev test ${CHECK} --bench || true
- stage: test
env: CHECK=datadog_checks_dev PYTHON3=true
- stage: test
env: CHECK=active_directory
- stage: test
env: CHECK=activemq_xml
- stage: test
env: CHECK=agent_metrics
- stage: test
env: CHECK=apache
- stage: test
env: CHECK=aspdotnet
- stage: test
env: CHECK=btrfs
- stage: test
env: CHECK=cacti
- stage: test
env: CHECK=cassandra_nodetool
- stage: test
env: CHECK=ceph
- stage: test
env: CHECK=cisco_aci
- stage: test
env: CHECK=cockroachdb
- stage: test
env: CHECK=consul
- stage: test
env: CHECK=couch
- stage: test
env: CHECK=couchbase
- stage: test
env: CHECK=directory PYTHON3=true
- stage: test
env: CHECK=disk
- stage: test
env: CHECK=dns_check
- stage: test
env: CHECK=dotnetclr
- stage: test
env: CHECK=ecs_fargate
- stage: test
env: CHECK=elastic
- stage: test
env: CHECK=envoy PYTHON3=true
- stage: test
env: CHECK=etcd PYTHON3=true
- stage: test
env: CHECK=exchange_server
- stage: test
env: CHECK=fluentd
- stage: test
env: CHECK=gearmand
- stage: test
env: CHECK=gitlab
- stage: test
env: CHECK=go_expvar
- stage: test
env: CHECK=gunicorn
- stage: test
env: CHECK=haproxy
- stage: test
env: CHECK=hdfs_datanode
- stage: test
env: CHECK=hdfs_namenode
- stage: test
env: CHECK=http_check
- stage: test
env: CHECK=iis
- stage: test
env: CHECK=istio
- stage: test
env: CHECK=kafka_consumer
- stage: test
env: CHECK=kong
- stage: test
env: CHECK=kube_dns
- stage: test
env: CHECK=kube_proxy
- stage: test
env: CHECK=kubelet
- stage: test
env: CHECK=kubernetes_state
- stage: test
env: CHECK=kyototycoon
- stage: test
env: CHECK=lighttpd
- stage: test
env: CHECK=linkerd
- stage: test
env: CHECK=linux_proc_extras
- stage: test
env: CHECK=mapreduce
- stage: test
env: CHECK=marathon
- stage: test
env: CHECK=mcache
- stage: test
env: CHECK=mesos_slave
- stage: test
env: CHECK=mesos_master
- stage: test
env: CHECK=mongo
- stage: test
env: CHECK=mysql
- stage: test
env: CHECK=nagios
- stage: test
env: CHECK=network
- stage: test
env: CHECK=nfsstat
- stage: test
env: CHECK=nginx
- stage: test
env: CHECK=ntp
- stage: test
env: CHECK=openldap
- stage: test
env: CHECK=openstack
- stage: test
env: CHECK=oracle
- stage: test
env: CHECK=pdh_check
- stage: test
env: CHECK=pgbouncer
- stage: test
env: CHECK=php_fpm PYTHON3=true
- stage: test
env: CHECK=postgres
- stage: test
env: CHECK=postfix
- stage: test
env: CHECK=powerdns_recursor
- stage: test
env: CHECK=process
- stage: test
env: CHECK=prometheus
- stage: test
env: CHECK=rabbitmq
- stage: test
env: CHECK=redisdb
- stage: test
env: CHECK=riak
- stage: test
env: CHECK=riakcs
- stage: test
env: CHECK=snmp
- stage: test
env: CHECK=spark
- stage: test
env: CHECK=sqlserver
- stage: test
env: CHECK=ssh_check
- stage: test
env: CHECK=statsd
- stage: test
env: CHECK=supervisord
- stage: test
env: CHECK=squid
- stage: test
env: CHECK=system_core
- stage: test
env: CHECK=system_swap
- stage: test
env: CHECK=tcp_check
- stage: test
env: CHECK=teamcity
- stage: test
env: CHECK=tokumx
- stage: test
env: CHECK=twemproxy
- stage: test
env: CHECK=varnish
- stage: test
env: CHECK=vault PYTHON3=true
- stage: test
env: CHECK=vsphere
- stage: test
env: CHECK=yarn
- stage: test
env: CHECK=zk
before_install:
- chmod +x .travis/prepare.sh
- .travis/prepare.sh
- PATH="$PATH:$(pyenv root)/versions/3.6/bin"
install:
- pip install -U pip setuptools codecov
- pip install ./datadog_checks_dev[cli]
- ddev config set core .
# we should clean generated files before we save the cache
# We don't want to save .pyc files, so we'll use find and -delete
before_cache:
- find $HOME/.cache/pip -name *.pyc -delete
after_script:
- if [[ $(docker ps -a -q) ]]; then docker stop $(docker ps -a -q); fi