forked from timescale/timescaledb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
454 lines (417 loc) · 25.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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
sudo: required
language: c
os:
- linux
services:
- docker
notifications:
slack:
if: (type = cron) AND (branch = master)
on_success: change
on_failure: always
template:
- "<!here>"
- "%{repository_slug} (%{build_number}) : %{message}"
- "Build details: %{build_url}"
rooms:
- secure: "n4gHRucKsrlYNLVmoTxhsSbH780+8c+OjUCbaSxzyf7QYpbiD5HdCYAwBwJw6VkWPHQ+gXXy75szzcBmCOILEqx+m8WBLet+K9Kw1g3EE0r7lXT+OLWi0JJXvWBv/QdMwefilg7mC8P/USEwUSZfK/iW7tERvQc38ajGonqTsS4QWSg9zAlZZ1ZQJAALd4S4z+BJ/skAQNV+hAI1DLb8jf3A+Ex4/uMs9oAmfGiKqQTwmHlL698XFD83bv0XdxJYskkL8Eqt+19d0HD7lTCvez0yES2PCRXUWsWd2mIwTzGPYyDAU+5MifUvV2CaGDDAhIpzTYoZ4rl2SJc4uu6Fztat4UQB1GGc+TCNo5V8L3IdmzGjI2NSk88QItvpSiiNvtS0mr5As9dO8pIwuWwc4SL0u5bYw7Cq+y2s85huhKrYFVkdEptxjGInHjmq0KsuqpHoFE3E2DPD0fR0KhOekFkzobXg1cPubWHOmzm/PhVaMz3tFAtg83V2f+qg3UtfjMMgI84J/SsUdqv9J1G9R2iGxi56WKSWHHyMeloY8Pz2HFJzV0fPJQM+D5pJFpxQkSXyOMR72qJjeg0IZTiCndX9AEswbGQ3d/dwmYgbfzAah+OP37ZTYyEOsqJTEKvWq8GuJZTuhdJhhvA38Axv9jACcoQtxTKdKskOAUH3TWA="
env:
global:
- secure: "TurskgAodG44RKCUPfoUb4JlT+UZwaPjUN73MS4+2ED2ayf46iUpcMODovDf7CPQRriMAvii/5xQ9UWTGYZejJy/Si3aE0fQeSKHIOPmuHqmmBkC3jgK9A5vOMpaAwljSNvIAMfwhIjVsq87nyvxHYWReDWl5SrdxTvh91RJvOiMRNdqwBbnj2j1cC30783ICGZUazrUyhDDnXispyBJYFxlHJmQJpfs6428dTRNJY/X8nVDXFwQkRjlIXarquTsrifCfzdq40Ykb8/1CS0295R8/kdKamQqXM0aS7iIkw3JFmZIz08OHKc7wcJuv6KSnCfNSftJqy2+nb1gkyIqkr3mrpYUa+2tKVwpA6OfET2S2kC5B3bOTcyBgihhnivAOS9zG8PTouLSUzqZzo+H893xdaMlX4kX3oOrOqzbj8YvTw6Dgw8PWERfnOngpKmKJFb8yboXPmGY7luSVxOplnPnYO0jaAXPU4ESsFYL3EBG5Zo4rVIuA5g7aJ0Ex+e5GQWiHDM1ubUo2vcuVVlurs/Aj8eSpNhqo0S5MjI05Jcz82X+9+asFcP+QV81UrueiXTlQ/7buAyMyVtKOgOhZwR4ImA1zzWkJjNNbZMJqeO9tPEgU7IxrqLhMgIpBB/pn0gzJZ8LN7C2oyznMYGzS5lrYaavojFUViv8vFyAQ24="
- secure: "S8WfPsrVGg21vZPxjrmy1X19T7zpHNgaSAoqYGzJdDZcNYuZbI87+tP3VQZo4MxjP3Ag46zTI5K+6aMjCqYqFGKufZdEaSpPSLmppFbXALgSp/rOkzp1M9HhGj0QVP7QcoPbva5Bjnj3zVi9CMAo6MwtnGAvzqBLOsdtnXTxEmKYyeNgwUVbQi2nzO38GeLgabaFL4XD3f3bmHE5jG6QAwZ/L7+jajsD1biH4sOiRLCRshtvermtYxh3SK6rML2kiwATABxTd1xDdMVRO/llmDBN373tHK6mufJyIhrwG9oTprSSDDIJlEbSPCkH0uvJBGcDvOAWf9tr4TGs/beawx3ELcXqR/4EisFqvMiVL4Vpt1gMBg9gue4Y0wpHZYoBOOef2gFtuyL7PjYe9koYJAJxg9DJ29DMxIjuCLTnbHN6yLa9425pdvxcuNEJ2K2zD0ZWoLSVueL0MxLhOZJsqlMkmmrFyI7y5cj1XvJF3vcsa5yK3S7sXroKUzeLu6QMh8hO3jD/2IvdQJ7Huy5uiJk2a+KUceLzruxLbwPF4b8SEoTquJ9NFGtagCG77lbIbLltLs2fUf+JnM8ipdpoMibVRFBOahP8NZwpL/NFzG3WLH3tDncj/c3fneMiNv3FUHLf6ufOVOayQiAEidszcMct2R20qIxggXKymrjZA3k="
- RETRY_PREFIX=$(if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then echo "travis_retry"; else echo ""; fi)
- CODECOV_FLAGS="-F cron"
before_install:
# We need the PostgreSQL source for running the standard PostgreSQL regression tests
- docker run -d --name pgbuild -v ${TRAVIS_BUILD_DIR}:/build postgres:${PG_VERSION}-alpine
install:
- docker exec -it pgbuild /bin/sh -c "apk add --no-cache --virtual .build-deps coreutils dpkg-dev findutils gcc libc-dev make util-linux-dev diffutils cmake bison flex curl git openssl-dev openssl && mkdir -p /build/debug /build/debug-nossl /postgres"
- docker exec -it pgbuild /bin/sh -c "apk add --no-cache --virtual --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted lcov"
# We need the PostgreSQL source for running the standard PostgreSQL regression tests
- docker exec -it pgbuild /bin/sh -c "wget -O postgresql.tar.bz2 https://ftp.postgresql.org/pub/source/v\$PG_VERSION/postgresql-\$PG_VERSION.tar.bz2 && tar --extract --file postgresql.tar.bz2 --directory /postgres --strip-components 1"
# We set /usr/local as prefix so the regression tools will be able to find
# initdb, psql, and postgres
- docker exec -it pgbuild /bin/sh -c "cd /postgres && ./configure --prefix=/usr/local --enable-debug --enable-cassert --without-readline --without-zlib"
# We only need to build the regress and isolation stuff
- docker exec -it pgbuild /bin/sh -c "make -C /postgres/src/test/regress"
- docker exec -it pgbuild /bin/sh -c "make -C /postgres/src/test/isolation"
# Ensure postgres user has permissions
- docker exec -it pgbuild /bin/bash -c "chown -R postgres:postgres /build/"
- docker exec -it pgbuild /bin/bash -c "chown -R postgres:postgres /postgres/"
script:
# First build without OpenSSL
- docker exec -it pgbuild /bin/sh -c "cd /build/debug-nossl && cmake .. -DUSE_OPENSSL=false -DPG_SOURCE_DIR=/postgres ${OTHER_CMAKE_FLAGS:-} -DCMAKE_BUILD_TYPE=Debug && make install && chown -R postgres:postgres /build/debug-nossl/"
# Run only telemetry test to see that it works without OpenSSL
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -C /build/debug-nossl installcheck TESTS=telemetry PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
# Now build with OpenSSL
- docker exec -it pgbuild /bin/sh -c "cd /build/debug && cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_OPENSSL=true -DENABLE_CODECOVERAGE=TRUE -DPG_SOURCE_DIR=/postgres ${OTHER_CMAKE_FLAGS:-} && make install && chown -R postgres:postgres /build/debug/"
# Now run all tests
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -k -C /build/debug installcheck PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
# Run the PG regression tests too
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -C /build/debug pginstallcheck PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
after_failure:
- docker exec -u postgres -it pgbuild find /build -name regression.diffs -exec cat {} +
- docker exec -u postgres -it pgbuild find /build -name postmaster.log -exec cat {} +
after_success:
after_script:
- docker rm -f pgbuild
jobs:
include:
# This tests the formatting of a PR.
- if: (type = pull_request) OR (type = cron) OR NOT (branch = master)
stage: test
name: "clang-format and license check"
env:
- PG_VERSION=11.1 ASAN_OPTIONS="detect_leaks=0"
before_install:
- docker run -d --name pgbuild -v ${TRAVIS_BUILD_DIR}:/timescaledb timescaledev/postgres-dev-clang:clang7-pg${PG_VERSION} /bin/sleep infinity
install:
- docker exec pgbuild /bin/bash -c "mkdir /tsdb_build && chown postgres /tsdb_build"
- docker exec --env ASAN_OPTIONS="${ASAN_OPTIONS}" pgbuild /bin/bash -c "cd /tsdb_build && cmake /timescaledb -DCMAKE_BUILD_TYPE=Debug -DPG_SOURCE_DIR=/usr/src/postgresql/ -DUSE_DEFAULT_VISIBILITY=1 && make"
after_failure:
after_success:
script:
- docker run -it -v ${TRAVIS_BUILD_DIR}:/timescaledb timescaledev/postgres-dev-clang:clang7-pg${PG_VERSION} /timescaledb/scripts/check_license_all.sh
- docker run -it -v ${TRAVIS_BUILD_DIR}:/timescaledb timescaledev/postgres-dev-clang:clang7-pg${PG_VERSION} /timescaledb/scripts/clang_format_all.sh
- git diff --exit-code
- docker exec pgbuild /bin/bash -c "/tsdb_build/scripts/export_prefix_check.sh"
- if: (type = cron) OR NOT (branch = master)
stage: test
name: "Git hook tests"
before_install:
install:
after_failure:
after_script:
script:
- python2 ./scripts/githooks/commit_msg_tests.py
- python3 ./scripts/githooks/commit_msg_tests.py
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Regression 9.6.15 32 bit"
env:
- PG_VERSION=9.6.15
- RETRY_PREFIX=""
before_install:
- docker run -d --name pgbuild -v ${TRAVIS_BUILD_DIR}:/build i386/postgres:${PG_VERSION}-alpine
script:
# First build without OpenSSL
- docker exec -it pgbuild /bin/sh -c "cd /build/debug-nossl && cmake .. -DUSE_OPENSSL=false -DPG_SOURCE_DIR=/postgres ${OTHER_CMAKE_FLAGS:-} -DCMAKE_BUILD_TYPE=Debug && make install && chown -R postgres:postgres /build/debug-nossl/"
# Run only telemetry test to see that it works without OpenSSL
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -C /build/debug-nossl installcheck TESTS=telemetry PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
# Now build with OpenSSL
- docker exec -it pgbuild /bin/sh -c "cd /build/debug && cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_OPENSSL=true -DENABLE_CODECOVERAGE=TRUE -DPG_SOURCE_DIR=/postgres ${OTHER_CMAKE_FLAGS:-} && make install && chown -R postgres:postgres /build/debug/"
# Now run all tests
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -k -C /build/debug installcheck IGNORES='bgw_db_scheduler chunk_adaptive' PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Regression 10.2 32 bit"
env:
- PG_VERSION=10.2
- RETRY_PREFIX=""
before_install:
- docker run -d --name pgbuild -v ${TRAVIS_BUILD_DIR}:/build i386/postgres:${PG_VERSION}-alpine
script:
# First build without OpenSSL
- docker exec -it pgbuild /bin/sh -c "cd /build/debug-nossl && cmake .. -DUSE_OPENSSL=false -DPG_SOURCE_DIR=/postgres ${OTHER_CMAKE_FLAGS:-} -DCMAKE_BUILD_TYPE=Debug && make install && chown -R postgres:postgres /build/debug-nossl/"
# Run only telemetry test to see that it works without OpenSSL
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -C /build/debug-nossl installcheck TESTS=telemetry PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
# Now build with OpenSSL
- docker exec -it pgbuild /bin/sh -c "cd /build/debug && cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_OPENSSL=true -DENABLE_CODECOVERAGE=TRUE -DPG_SOURCE_DIR=/postgres ${OTHER_CMAKE_FLAGS:-} && make install && chown -R postgres:postgres /build/debug/"
# Now run all tests
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -k -C /build/debug installcheck IGNORES='append-10 bgw_db_scheduler chunk_adaptive ordered_append-10 parallel-10 transparent_decompression-10' PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Regression 11.0 32 bit"
env:
- PG_VERSION=11.0
- RETRY_PREFIX=""
before_install:
- docker run -d --name pgbuild -v ${TRAVIS_BUILD_DIR}:/build i386/postgres:${PG_VERSION}-alpine
script:
# First build without OpenSSL
- docker exec -it pgbuild /bin/sh -c "cd /build/debug-nossl && cmake .. -DUSE_OPENSSL=false -DPG_SOURCE_DIR=/postgres ${OTHER_CMAKE_FLAGS:-} -DCMAKE_BUILD_TYPE=Debug && make install && chown -R postgres:postgres /build/debug-nossl/"
# Run only telemetry test to see that it works without OpenSSL
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -C /build/debug-nossl installcheck TESTS=telemetry PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
# Now build with OpenSSL
- docker exec -it pgbuild /bin/sh -c "cd /build/debug && cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_OPENSSL=true -DENABLE_CODECOVERAGE=TRUE -DPG_SOURCE_DIR=/postgres ${OTHER_CMAKE_FLAGS:-} && make install && chown -R postgres:postgres /build/debug/"
# Now run all tests
- ${RETRY_PREFIX} docker exec -u postgres -it pgbuild /bin/sh -c "make -k -C /build/debug installcheck IGNORES='append-11 bgw_db_scheduler chunk_adaptive ordered_append-11 parallel-11 transparent_decompression-11' PG_REGRESS_OPTS='--temp-instance=/tmp/pgdata'"
# This runs tests on ARM32 emulation
- if: branch = arm_test
stage: test
name: "Regression 9.6.6 ARM processors"
env:
- PG_VERSION=9.6.6
- RETRY_PREFIX=""
before_install:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker run -d --name docker_arm_emulator -v ${TRAVIS_BUILD_DIR}:/timescaledb timescaledev/timescaledb-arm32:pg${PG_VERSION} /bin/sleep infinity
- docker exec docker_arm_emulator /bin/bash -c "chown -R postgres:postgres /timescaledb"
install:
- docker exec docker_arm_emulator /bin/bash -c "mkdir /build && chown postgres:postgres /build"
- docker exec -u postgres docker_arm_emulator /bin/bash -c "cd /build && CFLAGS='-Werror -O2' cmake /timescaledb -DCMAKE_BUILD_TYPE=Debug && make"
- docker exec docker_arm_emulator /bin/bash -c "cd /build && make install"
before_script:
after_failure:
- docker exec -u postgres -it docker_arm_emulator find /build -name regression.diffs -exec cat {} +
- docker exec -u postgres -it docker_arm_emulator find /build -name postmaster.log -exec cat {} +
script:
# allow 50 mins to run
- travis_wait 50 docker exec -u postgres docker_arm_emulator /bin/bash -c "cd /build && make installcheck IGNORES='multi_transaction_indexing bgw_db_scheduler bgw_job_delete continuous_aggs_insert continuous_aggs_bgw'"
after_script:
- docker rm -f docker_arm_emulator
- if: branch = arm_test
stage: test
name: "Regression 10.2 ARM processors"
env:
- PG_VERSION=10.2
- RETRY_PREFIX=""
before_install:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker run -d --name docker_arm_emulator -v ${TRAVIS_BUILD_DIR}:/timescaledb timescaledev/timescaledb-arm32:pg${PG_VERSION} /bin/sleep infinity
- docker exec docker_arm_emulator /bin/bash -c "chown -R postgres:postgres /timescaledb"
install:
- docker exec docker_arm_emulator /bin/bash -c "mkdir /build && chown postgres:postgres /build"
- docker exec -u postgres docker_arm_emulator /bin/bash -c "cd /build && CFLAGS='-Werror -O2' cmake /timescaledb -DCMAKE_BUILD_TYPE=Debug && make"
- docker exec docker_arm_emulator /bin/bash -c "cd /build && make install"
before_script:
after_failure:
- docker exec -u postgres -it docker_arm_emulator find /build -name regression.diffs -exec cat {} +
- docker exec -u postgres -it docker_arm_emulator find /build -name postmaster.log -exec cat {} +
script:
# allow 50 mins to run
- travis_wait 50 docker exec -u postgres docker_arm_emulator /bin/bash -c "cd /build && make installcheck IGNORES='multi_transaction_indexing bgw_db_scheduler bgw_job_delete continuous_aggs_insert continuous_aggs_bgw plan_ordered_append-10'"
after_script:
- docker rm -f docker_arm_emulator
- if: branch = arm_test
stage: test
name: "Regression 11.0 ARM processors"
env:
- PG_VERSION=11.0
- RETRY_PREFIX=""
before_install:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker run -d --name docker_arm_emulator -v ${TRAVIS_BUILD_DIR}:/timescaledb timescaledev/timescaledb-arm32:pg${PG_VERSION} /bin/sleep infinity
- docker exec docker_arm_emulator /bin/bash -c "chown -R postgres:postgres /timescaledb"
install:
- docker exec docker_arm_emulator /bin/bash -c "mkdir /build && chown postgres:postgres /build"
- docker exec -u postgres docker_arm_emulator /bin/bash -c "cd /build && CFLAGS='-Werror -O2' cmake /timescaledb -DCMAKE_BUILD_TYPE=Debug && make"
- docker exec docker_arm_emulator /bin/bash -c "cd /build && make install"
before_script:
after_failure:
- docker exec -u postgres -it docker_arm_emulator find /build -name regression.diffs -exec cat {} +
- docker exec -u postgres -it docker_arm_emulator find /build -name postmaster.log -exec cat {} +
script:
# allow 50 mins to run
- travis_wait 50 docker exec -u postgres docker_arm_emulator /bin/bash -c "cd /build && make installcheck IGNORES='multi_transaction_indexing bgw_db_scheduler bgw_job_delete continuous_aggs_insert continuous_aggs_bgw plan_ordered_append-11 parallel-11'"
after_script:
- docker rm -f docker_arm_emulator
# to maximize code code coverage on PRs we run tests on earliest 9.6, latest 10 and earliest and latest 11
# cron and prerelease runs regression tests on earliest and latest for each major version
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Regression 9.6.6"
env: PG_VERSION=9.6.6
- if: (type = pull_request) OR (type = cron) OR NOT (branch = master)
stage: test
name: "Regression 9.6.15"
env: PG_VERSION=9.6.15
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Regression 10.2"
env: PG_VERSION=10.2
- if: (type = pull_request) OR (type = cron) OR NOT (branch = master)
stage: test
name: "Regression 10.10"
env: PG_VERSION=10.10
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Regression 11.0"
env: PG_VERSION=11.0
- if: (type = pull_request) OR (type = cron) OR NOT (branch = master)
stage: test
name: "Regression 11.5"
env: PG_VERSION=11.5
#get codecov info, we only run 11.0 on PRs and the rest in cron
- if: (type = pull_request) OR (type = cron) OR NOT (branch = master)
stage: test
name: "CodeCov 11.0"
env: PG_VERSION=11.0 OTHER_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DTS_COVERAGE_ONLY=TRUE -DCMAKE_C_FLAGS='-O0 -coverage -fprofile-arcs -ftest-coverage -DNDEBUG'" CODECOV_FLAGS="-F pr"
after_success:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker exec -it $ci_env pgbuild /bin/bash -c "cd /build/debug && bash <(curl -s https://codecov.io/bash) -c ${CODECOV_FLAGS} || echo \"Codecov did not collect coverage reports\" "
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "CodeCov 9.6.15"
env: PG_VERSION=9.6.15 OTHER_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DTS_COVERAGE_ONLY=TRUE -DCMAKE_C_FLAGS='-O0 -coverage -fprofile-arcs -ftest-coverage -DNDEBUG'" CODECOV_FLAGS="-F cron"
after_success:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker exec -it $ci_env pgbuild /bin/bash -c "cd /build/debug && bash <(curl -s https://codecov.io/bash) -c ${CODECOV_FLAGS} || echo \"Codecov did not collect coverage reports\" "
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "CodeCov 11.5"
env: PG_VERSION=11.5 OTHER_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DTS_COVERAGE_ONLY=TRUE -DCMAKE_C_FLAGS='-O0 -coverage -fprofile-arcs -ftest-coverage -DNDEBUG'" CODECOV_FLAGS="-F cron"
after_success:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker exec -it $ci_env pgbuild /bin/bash -c "cd /build/debug && bash <(curl -s https://codecov.io/bash) -c ${CODECOV_FLAGS} || echo \"Codecov did not collect coverage reports\" "
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "CodeCov 10.10"
env: PG_VERSION=10.10 OTHER_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DTS_COVERAGE_ONLY=TRUE -DCMAKE_C_FLAGS='-O0 -coverage -fprofile-arcs -ftest-coverage -DNDEBUG'" CODECOV_FLAGS="-F cron"
after_success:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker exec -it $ci_env pgbuild /bin/bash -c "cd /build/debug && bash <(curl -s https://codecov.io/bash) -c ${CODECOV_FLAGS} || echo \"Codecov did not collect coverage reports\" "
# This tests the ability to upgrade to the latest version from versions without constraint support
- if: (type = cron) OR (branch = prerelease_test)
stage: test
env: PG_VERSION=9.6.6
name: "Update tests (versions w/o constraints support) 9.6.6"
before_install:
install:
after_failure:
after_script:
after_success:
script:
- ${RETRY_PREFIX} bash -x ./scripts/test_updates_no_constraints.sh
# This tests the ability to upgrade to the latest version from versions with constraint support
- if: (type = cron) OR (branch = prerelease_test)
stage: test
env: PG_VERSION=9.6.6
name: "Update tests (versions w/ constraints support) 9.6.6"
before_install:
install:
after_failure:
after_script:
after_success:
script:
- ${RETRY_PREFIX} bash -x ./scripts/test_updates_with_constraints.sh
# This tests the ability to upgrade to the latest version on pg 10
- if: (type = pull_request) OR (type = cron) OR (branch = prerelease_test)
stage: test
env: PG_VERSION=10.2
name: "Update tests PostgreSQL 10.2"
before_install:
install:
after_failure:
after_script:
after_success:
script:
- ${RETRY_PREFIX} bash ./scripts/test_updates_pg10.sh
# This tests the ability to upgrade to the latest version on pg 11
- if: (type = pull_request) OR (type = cron) OR (branch = prerelease_test)
stage: test
env: PG_VERSION=11.0
name: "Update tests PostgreSQL 11.0"
before_install:
install:
after_failure:
after_script:
after_success:
script:
- ${RETRY_PREFIX} bash ./scripts/test_updates_pg11.sh
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "ABI breakage smoketest 9.6"
before_install:
install:
after_failure:
after_script:
script:
# Version >= 9.6.3 is required by TimescaleDB
- PG_MAJOR=9.6 PG_MINOR_COMPILE=3 bash -x ./scripts/docker-run-abi-test.sh
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "ABI breakage smoketest 10"
before_install:
install:
after_failure:
after_script:
script:
# There is a breakage of ABI between 10.1->10.2 so test starting at 10.2
- PG_MAJOR=10 PG_MINOR_COMPILE=2 bash -x ./scripts/docker-run-abi-test.sh
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "ABI breakage smoketest 11"
before_install:
install:
after_failure:
after_script:
script:
- PG_MAJOR=11 PG_MINOR_COMPILE=0 bash -x ./scripts/docker-run-abi-test.sh
# ApacheOnly regression tests
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "ApacheOnly regression tests 11.0"
env: PG_VERSION=11.0 OTHER_CMAKE_FLAGS="-DAPACHE_ONLY=true"
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "ApacheOnly regression tests 10.2"
env: PG_VERSION=10.2 OTHER_CMAKE_FLAGS="-DAPACHE_ONLY=true"
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "ApacheOnly regression tests 9.6.6"
env: PG_VERSION=9.6.6 OTHER_CMAKE_FLAGS="-DAPACHE_ONLY=true"
# Release mode regression tests
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Release regression tests 11.0"
env: PG_VERSION=11.0 OTHER_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE='Release'"
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Release regression tests 10.2"
env: PG_VERSION=10.2 OTHER_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE='Release'"
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Release regression tests 9.6.6"
env: PG_VERSION=9.6.6 OTHER_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE='Release'"
# Memory spike test when running out of order random inserts into timescaledb database
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "Memory leak on insert tests"
before_install:
install:
after_failure:
after_success:
after_script:
env:
- PG_VERSION=10.2
before_script:
- git clone --progress --verbose https://$USR:[email protected]/440-labs/tsdb-dev-tools.git /tmp/tsdb-dev-tools
script:
- bash ./scripts/docker-run-memory-test.sh
# Sanitizer tests
- if: (type = cron) OR (branch = prerelease_test)
stage: test
name: "ASAN and UBSAN tests"
before_install:
install:
after_failure:
before_script:
script:
# TEST_MAX specifies the maximum test # to go up to
- TIMESCALE_DIR=$TRAVIS_BUILD_DIR bash ./scripts/test_sanitizers.sh
after_script:
- kill $(jobs -p) # kill job that prints repeatedly
# Coverity test
- if: (branch = prerelease_test) OR (branch = coverity_scan)
stage: test
name: "Coverity"
env:
- secure: "jy4DQH2syPR2v13igCNPTr044h3H/ilbJk6FifDMxGZVrOZR0dnkBx3O7qJMQOkEQvNxKsoq41k6HCP16qcgt4+HjxhcZonz5hKIiF8IpcB9r+TIlZunNTx7HjSNFZ3WCnham4AvMEthBHgAttRUhscy39ELCNUEobKS/youi7OHLOEXXShc84yTh3aSuGR3SnDVK1diLN5ufX6tN20pc3QvLMGZmA/jmJFcIQHGilhWGwwiJ45LSLwM9slvgGKbTM/K6btVBMOUnjM0h5WqPjRjDUL2tF+iZLEIpY8lFN/MQCnj0vP/BryDdoVPZS3TDQYwYuvASevQ4sOmULnM770jFqzClq4zkeM2GhMq67aYMmXjblu/qcLeCjZL+vfjMKpBMUydK/bCb097HvdRWDEPA0zItKWX9Kd6lVf2XbJCCh0ljp5REJEyk+plJ2V12nLpOPwY6zTtzcoTxEN6wcvUJfHAdNovpp63hWTnbAbEZamIdxwyCqpzThDobeD354TeXFUaKvrUw00iAiIhGL2QvwapaCbhlwM6NQAmdU3tMy3nZpka6bRI1kjyTh7CXfdwXV98ZJSiPdUFxyIgFNI2dKiL3BI1pvFDfq3mnmi3WqzZHCaQqDKNEtUrzxC40swIJGLcLUiqc5xX37P47jNDWrNIRDs8IdbM0tS9pFM="
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- sudo apt-get install -y postgresql-9.6 postgresql-client-9.6 postgresql-contrib-9.6 postgresql-server-dev-9.6 cmake
install:
after_success:
after_script:
script: echo "Success"
addons:
postgresql: "9.6"
coverity_scan:
project:
name: "timescale/timescaledb"
description: "TimescaledDB an open-source time-series DB"
notification_email: [email protected]
build_command_prepend: "./bootstrap -DCMAKE_BUILD_TYPE=Debug -DREGRESS_CHECKS=OFF && cd build"
build_command: "make"
branch_pattern: coverity_scan|prerelease_test