forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
350 lines (338 loc) · 14.2 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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# send to fully-virtualized infrastructure: https://docs.travis-ci.com/user/reference/xenial/
sudo: required
dist: xenial
cache:
# default timeout is too low
timeout: 600
directories:
- $HOME/.m2
- $HOME/flink_cache
# keep in sync with tools/travis/setup_maven.sh
- $HOME/maven_cache
# keep in sync with tools/travis/docs.sh
- $HOME/gem_cache
# do not cache our own artifacts
before_cache:
- rm -rf $HOME/.m2/repository/org/apache/flink/
install: true
language: java
git:
depth: 100
env:
global:
# Global variable to avoid hanging travis builds when downloading cache archives.
- MALLOC_ARENA_MAX=2
- DOCKER_COMPOSE_VERSION=1.22.0
- CHANGE_MINIKUBE_NONE_USER=true
before_script:
- "export -f travis_nanoseconds"
- "export -f travis_time_start"
- "export -f travis_time_finish"
# Install maven 3.2.5 since xenial uses 3.3.9 for which shading is broken
before_install:
- source ./tools/travis/setup_maven.sh
notifications:
slack:
rooms:
- secure: ikPQn5JTpkyzxVyOPm/jIl3FPm6hY8xAdG4pSwxGWjBqF+NmmNTp9YZsJ6fD8xPql6T5n1hNDbZSC14jVUw/vvXGvibDXLN+06f25ZQl+4LJBXaiR7gTG6y3nO8G90Vw7XpvCme6n5Md9tvjygb17a4FEgRJFfwzWnnyPA1yvK0=
on_success: never
on_pull_requests: false
stages:
- name: compile
- name: test
- name: E2E
if: type = cron
- name: cleanup
jdk: "openjdk8"
jobs:
include:
# main profile
- if: type in (pull_request, push)
stage: compile
script: ./tools/travis_controller.sh compile
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: compile
- if: type in (pull_request, push)
stage: test
script: ./tools/travis_controller.sh core
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: core
- if: type in (pull_request, push)
script: ./tools/travis_controller.sh python
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: python
- if: type in (pull_request, push)
script: ./tools/travis_controller.sh libraries
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: libraries
- if: type in (pull_request, push)
script: ./tools/travis_controller.sh blink_planner
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: blink_planner
- if: type in (pull_request, push)
script: ./tools/travis_controller.sh connectors
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: connectors
- if: type in (pull_request, push)
script: ./tools/travis_controller.sh kafka/gelly
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: kafka/gelly
- if: type in (pull_request, push)
script: ./tools/travis_controller.sh tests
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: tests
- if: type in (pull_request, push)
script: ./tools/travis_controller.sh misc
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: misc
- if: type in (pull_request, push)
stage: cleanup
script: ./tools/travis_controller.sh cleanup
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
name: cleanup
# hadoop 2.4.1 profile
- if: type = cron
stage: compile
script: ./tools/travis_controller.sh compile
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: compile - hadoop 2.4.1
- if: type = cron
stage: test
script: ./tools/travis_controller.sh core
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: core - hadoop 2.4.1
- if: type = cron
script: ./tools/travis_controller.sh libraries
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: libraries - hadoop 2.4.1
- if: type = cron
script: ./tools/travis_controller.sh blink_planner
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: blink_planner - hadoop 2.4.1
- if: type = cron
script: ./tools/travis_controller.sh connectors
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: connectors - hadoop 2.4.1
- if: type = cron
script: ./tools/travis_controller.sh kafka/gelly
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: kafka/gelly - hadoop 2.4.1
- if: type = cron
script: ./tools/travis_controller.sh tests
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: tests - hadoop 2.4.1
- if: type = cron
script: ./tools/travis_controller.sh misc
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: misc - hadoop 2.4.1
- if: type = cron
stage: cleanup
script: ./tools/travis_controller.sh cleanup
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis -Pskip-hive-tests"
name: cleanup - hadoop 2.4.1
# scala 2.12 profile
- if: type = cron
stage: compile
script: ./tools/travis_controller.sh compile
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: compile - scala 2.12
- if: type = cron
stage: test
script: ./tools/travis_controller.sh core
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: core - scala 2.12
- if: type = cron
script: ./tools/travis_controller.sh libraries
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: libraries - scala 2.12
- if: type = cron
script: ./tools/travis_controller.sh blink_planner
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: blink_planner - scala 2.12
- if: type = cron
script: ./tools/travis_controller.sh connectors
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: connectors - scala 2.12
- if: type = cron
script: ./tools/travis_controller.sh kafka/gelly
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: kafka/gelly - scala 2.12
- if: type = cron
script: ./tools/travis_controller.sh tests
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: tests - scala 2.12
- if: type = cron
script: ./tools/travis_controller.sh misc
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: misc - scala 2.12
- if: type = cron
stage: cleanup
script: ./tools/travis_controller.sh cleanup
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12 -Phive-1.2.1"
name: cleanup - scala 2.12
# JDK9 profile
- if: type = cron
jdk: "openjdk9"
stage: compile
script: ./tools/travis_controller.sh compile
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: compile - jdk 9
- if: type = cron
jdk: "openjdk9"
stage: test
script: ./tools/travis_controller.sh core
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: core - jdk 9
- if: type = cron
jdk: "openjdk9"
script: ./tools/travis_controller.sh python
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: python - jdk 9
- if: type = cron
jdk: "openjdk9"
script: ./tools/travis_controller.sh libraries
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: libraries - jdk 9
- if: type = cron
jdk: "openjdk9"
script: ./tools/travis_controller.sh blink_planner
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: blink_planner - jdk 9
- if: type = cron
jdk: "openjdk9"
script: ./tools/travis_controller.sh connectors
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: connectors - jdk 9
- if: type = cron
jdk: "openjdk9"
script: ./tools/travis_controller.sh kafka/gelly
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: kafka/gelly - jdk 9
- if: type = cron
jdk: "openjdk9"
script: ./tools/travis_controller.sh tests
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: tests - jdk 9
- if: type = cron
jdk: "openjdk9"
script: ./tools/travis_controller.sh misc
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: misc
- if: type = cron
jdk: "openjdk9"
stage: cleanup
script: ./tools/travis_controller.sh cleanup
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
name: cleanup - jdk 9
# Documentation 404 check
- if: type = cron
stage: test
script: ./tools/travis/docs.sh
language: ruby
rvm: 2.4.0
name: Documentation links check
# E2E profiles - Hadoop 2.8
- if: type = cron
stage: test
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -De2e-metrics -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_misc.sh
name: misc - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_ha.sh
name: ha - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_sticky.sh
name: sticky - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_checkpoints.sh
name: checkpoints - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_container.sh
name: container - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_heavy.sh
name: heavy - hadoop 2.8
# E2E profiles - Scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -De2e-metrics -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_misc.sh
name: misc - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_ha.sh
name: ha - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_sticky.sh
name: sticky - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_checkpoints.sh
name: checkpoints - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_container.sh
name: container - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_heavy.sh
name: heavy - scala 2.12
# E2E profiles - Hadoop-free
- if: type = cron
env: PROFILE="-De2e-metrics -Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_misc_hadoopfree.sh
name: misc
- if: type = cron
env: PROFILE="-Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_ha.sh
name: ha
- if: type = cron
env: PROFILE="-Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_sticky.sh
name: sticky
- if: type = cron
env: PROFILE="-Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_checkpoints.sh
name: checkpoints
- if: type = cron
env: PROFILE="-Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_container.sh
name: container
- if: type = cron
env: PROFILE="-Dinclude-kinesis"
script: ./tools/travis/nightly.sh split_heavy.sh
name: heavy
- # E2E profiles - Java 9
- if: type = cron
stage: test
jdk: "openjdk9"
env: PROFILE="-De2e-metrics -Dinclude-kinesis -Djdk9"
script: ./tools/travis/nightly.sh split_ha.sh
name: ha - jdk9
- if: type = cron
env: PROFILE="-Dinclude-kinesis -Djdk9"
script: ./tools/travis/nightly.sh split_sticky.sh
name: sticky - jdk 9
- if: type = cron
env: PROFILE="-Dinclude-kinesis -Djdk9"
script: ./tools/travis/nightly.sh split_checkpoints.sh
name: checkpoints - jdk 9