blob: 931f58072709cbcefe2d2bc148d00a033f9cd3d8 [file] [log] [blame]
onqtame85b1bb2016-06-26 16:41:09 +03001# this file is HEAVILY influenced by https://github.com/boostorg/hana/blob/master/.travis.yml
2
onqtame4c75fc2016-05-21 01:24:48 +03003sudo: false
4language: c++
5
6notifications:
onqtamf5169772016-09-09 18:33:13 +03007 email: false
onqtame4c75fc2016-05-21 01:24:48 +03008 # gitter
9 webhooks:
10 urls: https://webhooks.gitter.im/e/10941dd1c67e5e967706
11 on_success: change
12 on_failure: always
13git:
onqtam9f934f82016-08-02 12:42:19 +030014 depth: 500
onqtame4c75fc2016-05-21 01:24:48 +030015
16# both apt and ccache make the builds slower...
17#cache:
18# - apt
19# - ccache
20
21env:
22 global:
23# - USE_CCACHE=1
24# - CCACHE_SLOPPINESS=pch_defines,time_macros
25# - CCACHE_COMPRESS=1
26# - CCACHE_MAXSIZE=200M
27# - CCACHE_CPP2=1
28 - CMAKE_OPTIONS_GLOBAL="-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
29 # Workaround for https://github.com/travis-ci/travis-ci/issues/4681
30 # "Defining the build matrix only with matrix.include leads to an additional, unwanted job"
31 matrix:
32 - TRAVIS_EMPTY_JOB_WORKAROUND=true
33
34addons:
35 coverity_scan:
36 # COVERITY_SCAN_TOKEN added as env var in travis project
37 project:
38 name: onqtam/doctest
39 notification_email: vik.kirilov@gmail.com
40 build_command_prepend: cd examples/hello_world && cmake .
41 build_command: make
42 branch_pattern: coverity_scan
43 # these apt sources will be referenced later (by using *name)
44 apt:
onqtam2c8036f2016-06-26 17:12:42 +030045 sources: &apt_sources
46 - ubuntu-toolchain-r-test
onqtam7e775f92016-11-15 02:41:10 +020047 - llvm-toolchain-precise
onqtamb382bd32016-08-01 20:53:56 +030048 - llvm-toolchain-precise-3.5
49 - llvm-toolchain-precise-3.6
50 - llvm-toolchain-precise-3.7
51 - llvm-toolchain-precise-3.8
onqtamfd62aa02016-11-15 03:00:44 +020052 - llvm-toolchain-precise-3.9
onqtame4c75fc2016-05-21 01:24:48 +030053
54compiler: clang
55os: linux
56
57matrix:
58 exclude:
59 - env: TRAVIS_EMPTY_JOB_WORKAROUND=true
60
61 include:
onqtamd1737e42016-08-01 19:05:07 +030062 # coverage
63 - env: COMPILER=g++ COVERALLS_SERVICE_NAME=travis-ci
64 compiler: gcc
65 addons:
66 apt:
67 packages: ["lcov", "curl"]
68
onqtam529c92c2016-08-02 17:51:59 +030069 # GCC 4.4
70 - env: COMPILER=g++-4.4
71 compiler: gcc
72 addons: &gcc44
73 apt:
74 packages: ["g++-4.4", "valgrind", "g++-4.4-multilib", "libc6-dbg", "libc6-dbg:i386"]
75 sources: *apt_sources
76
77 # GCC 4.5
78 - env: COMPILER=g++-4.5
79 compiler: gcc
80 addons: &gcc45
81 apt:
82 packages: ["g++-4.5", "valgrind", "g++-4.5-multilib", "libc6-dbg", "libc6-dbg:i386"]
83 sources: *apt_sources
84
85 # GCC 4.6
86 - env: COMPILER=g++-4.6
87 compiler: gcc
88 addons: &gcc46
89 apt:
90 packages: [ "valgrind", "g++-4.6-multilib", "libc6-dbg", "libc6-dbg:i386"]
91 sources: *apt_sources
92
93 # GCC 4.7
94 - env: COMPILER=g++-4.7
95 compiler: gcc
96 addons: &gcc47
97 apt:
98 packages: ["g++-4.7", "valgrind", "g++-4.7-multilib", "libc6-dbg", "libc6-dbg:i386"]
99 sources: *apt_sources
100
101 # GCC 4.8
102 - env: COMPILER=g++-4.8 HAS_ASAN_32=true HAS_ASAN_64=true
103 compiler: gcc
104 addons: &gcc48
105 apt:
106 packages: ["g++-4.8", "valgrind", "g++-4.8-multilib", "libc6-dbg", "libc6-dbg:i386"]
107 sources: *apt_sources
108
109 # GCC 4.9
onqtamb1a3de82016-10-10 22:22:00 +0300110 - env: COMPILER=g++-4.9 HAS_UBSAN_32=true HAS_ASAN_64=true HAS_UBSAN_64=true # no ASAN_32 - errors when using ASAN_OPTIONS - probably g++ 4.9 bug
onqtam529c92c2016-08-02 17:51:59 +0300111 compiler: gcc
112 addons: &gcc49
113 apt:
114 packages: ["g++-4.9", "valgrind", "g++-4.9-multilib", "libc6-dbg", "libc6-dbg:i386"]
115 sources: *apt_sources
116
117 # GCC 5
118 - env: COMPILER=g++-5 HAS_ASAN_32=true HAS_UBSAN_32=true HAS_ASAN_64=true HAS_UBSAN_64=true ADDITIONAL_CXX_FLAGS=" -fuse-ld=gold"
119 compiler: gcc
120 addons: &gcc5
121 apt:
122 packages: ["g++-5", "valgrind", "g++-5-multilib", "libc6-dbg", "libc6-dbg:i386"]
123 sources: *apt_sources
124
125 # GCC 6
126 - env: COMPILER=g++-6 HAS_ASAN_32=true HAS_UBSAN_32=true HAS_ASAN_64=true HAS_UBSAN_64=true ADDITIONAL_CXX_FLAGS=" -fuse-ld=gold"
127 compiler: gcc
128 addons: &gcc6
129 apt:
130 packages: ["g++-6", "valgrind", "g++-6-multilib", "libc6-dbg", "libc6-dbg:i386"]
131 sources: *apt_sources
132
133 # Clang 3.4
onqtamc30ab662016-08-05 01:13:08 +0300134 - env: COMPILER=clang++ HAS_ASAN_64=true HAS_UBSAN_64=true
onqtam529c92c2016-08-02 17:51:59 +0300135 addons: &clang
136 apt:
137 packages: [ "valgrind", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
138 sources: *apt_sources
139
140 # Clang 3.5
onqtamc30ab662016-08-05 01:13:08 +0300141 - env: COMPILER=clang++-3.5 HAS_ASAN_64=true HAS_UBSAN_64=true
onqtam529c92c2016-08-02 17:51:59 +0300142 addons: &clang35
143 apt:
144 packages: ["clang-3.5", "valgrind", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
145 sources: *apt_sources
146
147 # Clang 3.6
onqtamc30ab662016-08-05 01:13:08 +0300148 - env: COMPILER=clang++-3.6 HAS_ASAN_64=true HAS_UBSAN_64=true
onqtam529c92c2016-08-02 17:51:59 +0300149 addons: &clang36
150 apt:
151 packages: ["clang-3.6", "valgrind", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
152 sources: *apt_sources
153
154 # Clang 3.7
onqtamc30ab662016-08-05 01:13:08 +0300155 - env: COMPILER=clang++-3.7
onqtam529c92c2016-08-02 17:51:59 +0300156 addons: &clang37
157 apt:
158 packages: ["clang-3.7", "valgrind", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
159 sources: *apt_sources
160
161 # Clang 3.8
onqtamc30ab662016-08-05 01:13:08 +0300162 - env: COMPILER=clang++-3.8 HAS_ASAN_64=true HAS_UBSAN_64=true
onqtam529c92c2016-08-02 17:51:59 +0300163 addons: &clang38
164 apt:
165 packages: ["clang-3.8", "valgrind", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
166 sources: *apt_sources
167
onqtam44025452016-11-15 01:25:24 +0200168 # Clang 3.9
169 - env: COMPILER=clang++-3.9 HAS_ASAN_64=true HAS_UBSAN_64=true
170 addons: &clang39
171 apt:
172 packages: ["clang-3.9", "valgrind", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
173 sources: *apt_sources
174
onqtam529c92c2016-08-02 17:51:59 +0300175 # Xcode 6.1 Clang
176 - env: COMPILER=clang++
177 os: osx
178
179 # Xcode 6.2 Clang
180 - env: COMPILER=clang++
181 osx_image: beta-xcode6.2
182 os: osx
183
184 # Xcode 6.3 Clang
185 - env: COMPILER=clang++
186 osx_image: beta-xcode6.3
187 os: osx
188
189 # Xcode 6.4 Clang
190 - env: COMPILER=clang++
191 osx_image: xcode6.4
192 os: osx
193
194 # Xcode 7 Clang
195 - env: COMPILER=clang++ HAS_ASAN_32=true HAS_ASAN_64=true
196 osx_image: xcode7
197 os: osx
198
199 # Xcode 7.1 Clang
200 - env: COMPILER=clang++ HAS_ASAN_32=true HAS_ASAN_64=true
201 osx_image: xcode7.1
202 os: osx
203
204 # Xcode 7.2 Clang
205 - env: COMPILER=clang++ HAS_ASAN_32=true HAS_ASAN_64=true
206 osx_image: xcode7.2
207 os: osx
208
209 # Xcode 7.3 Clang
210 - env: COMPILER=clang++ HAS_ASAN_32=true HAS_ASAN_64=true
211 osx_image: xcode7.3
212 os: osx
213
214 # Xcode 8 Clang
215 - env: COMPILER=clang++ HAS_ASAN_32=true HAS_ASAN_64=true
216 osx_image: xcode8
217 os: osx
218
219 # OSX GCC 4.4
220 - env: COMPILER=g++-4.4
221 compiler: gcc
onqtamb1a3de82016-10-10 22:22:00 +0300222 osx_image: beta-xcode6.2
onqtam529c92c2016-08-02 17:51:59 +0300223 os: osx
224
225 # OSX GCC 4.5
226 - env: COMPILER=g++-4.5
227 compiler: gcc
onqtam5cab8e92016-10-10 17:58:38 +0300228 osx_image: beta-xcode6.3
onqtam529c92c2016-08-02 17:51:59 +0300229 os: osx
230
231 # OSX GCC 4.6
232 - env: COMPILER=g++-4.6
233 compiler: gcc
onqtam5cab8e92016-10-10 17:58:38 +0300234 osx_image: beta-xcode6.3
onqtam529c92c2016-08-02 17:51:59 +0300235 os: osx
236
237 # OSX GCC 4.7
238 - env: COMPILER=g++-4.7
239 compiler: gcc
onqtam5cab8e92016-10-10 17:58:38 +0300240 osx_image: beta-xcode6.3
onqtam529c92c2016-08-02 17:51:59 +0300241 os: osx
242
243 # OSX GCC 4.8
244 - env: COMPILER=g++-4.8 HAS_ASAN_32=true HAS_ASAN_64=true
245 compiler: gcc
onqtam5cab8e92016-10-10 17:58:38 +0300246 osx_image: beta-xcode6.3
onqtam529c92c2016-08-02 17:51:59 +0300247 os: osx
248
249 # OSX GCC 4.9
onqtamb1a3de82016-10-10 22:22:00 +0300250 - env: COMPILER=g++-4.9 HAS_UBSAN_32=true HAS_UBSAN_64=true # no ASAN_32/ASAN_64 - errors when using ASAN_OPTIONS - probably g++ 4.9 bug
onqtam529c92c2016-08-02 17:51:59 +0300251 compiler: gcc
onqtam5cab8e92016-10-10 17:58:38 +0300252 osx_image: beta-xcode6.3
onqtam529c92c2016-08-02 17:51:59 +0300253 os: osx
254
255 # OSX GCC 5
256 - env: COMPILER=g++-5 HAS_ASAN_32=true HAS_UBSAN_32=true HAS_ASAN_64=true HAS_UBSAN_64=true
257 compiler: gcc
onqtam5cab8e92016-10-10 17:58:38 +0300258 osx_image: beta-xcode6.3
onqtam529c92c2016-08-02 17:51:59 +0300259 os: osx
260
261 # OSX GCC 6
262 - env: COMPILER=g++-6 HAS_ASAN_32=true HAS_UBSAN_32=true HAS_ASAN_64=true HAS_UBSAN_64=true
263 compiler: gcc
onqtam5cab8e92016-10-10 17:58:38 +0300264 osx_image: beta-xcode6.3
onqtam529c92c2016-08-02 17:51:59 +0300265 os: osx
266
267 # OSX LLVM-GCC
268 - env: COMPILER=g++
269 compiler: gcc
270 os: osx
onqtame4c75fc2016-05-21 01:24:48 +0300271
onqtam3ffb8872016-06-07 23:46:09 +0300272 allow_failures:
onqtamfd62aa02016-11-15 03:00:44 +0200273
274 # Clang 3.9 - failing because the llvm 3.9 ppa is not yet whitelisted...
275 - env: COMPILER=clang++-3.9 HAS_ASAN_64=true HAS_UBSAN_64=true
276
onqtamb1a3de82016-10-10 22:22:00 +0300277 # for some reason some of these builds fail sometimes...
onqtam5cab8e92016-10-10 17:58:38 +0300278
279 # OSX GCC 4.4
280 - env: COMPILER=g++-4.4
onqtamc6555cf2016-09-20 15:07:28 +0300281 compiler: gcc
onqtamb1a3de82016-10-10 22:22:00 +0300282 osx_image: beta-xcode6.2
onqtam5cab8e92016-10-10 17:58:38 +0300283 os: osx
284
285 # OSX GCC 4.5
286 - env: COMPILER=g++-4.5
287 compiler: gcc
288 osx_image: beta-xcode6.3
289 os: osx
290
291 # OSX GCC 4.6
292 - env: COMPILER=g++-4.6
293 compiler: gcc
294 osx_image: beta-xcode6.3
295 os: osx
296
297 # OSX GCC 4.7
298 - env: COMPILER=g++-4.7
299 compiler: gcc
300 osx_image: beta-xcode6.3
301 os: osx
302
303 # OSX GCC 4.8
304 - env: COMPILER=g++-4.8 HAS_ASAN_32=true HAS_ASAN_64=true
305 compiler: gcc
306 osx_image: beta-xcode6.3
onqtamc6555cf2016-09-20 15:07:28 +0300307 os: osx
onqtam3ffb8872016-06-07 23:46:09 +0300308
onqtamb1a3de82016-10-10 22:22:00 +0300309 # OSX GCC 4.9
310 - env: COMPILER=g++-4.9 HAS_UBSAN_32=true HAS_UBSAN_64=true # no ASAN_32/ASAN_64 - errors when using ASAN_OPTIONS - probably g++ 4.9 bug
311 compiler: gcc
312 osx_image: beta-xcode6.3
313 os: osx
314
315 # OSX GCC 5
316 - env: COMPILER=g++-5 HAS_ASAN_32=true HAS_UBSAN_32=true HAS_ASAN_64=true HAS_UBSAN_64=true
317 compiler: gcc
318 osx_image: beta-xcode6.3
319 os: osx
320
321 # OSX GCC 6
322 - env: COMPILER=g++-6 HAS_ASAN_32=true HAS_UBSAN_32=true HAS_ASAN_64=true HAS_UBSAN_64=true
323 compiler: gcc
324 osx_image: beta-xcode6.3
325 os: osx
326
onqtame4c75fc2016-05-21 01:24:48 +0300327before_install:
onqtam2c8036f2016-06-26 17:12:42 +0300328 - git submodule update --init --recursive
329
330install:
onqtam01158572016-06-28 14:29:32 +0300331 ############################################################################
onqtamc7aaa962016-09-10 02:16:57 +0300332 # All the dependencies are installed in ${TRAVIS_BUILD_DIR}/deps/
333 ############################################################################
334
335 - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
336 - mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
337
338 ############################################################################
339 # Install a recent CMake
340 ############################################################################
341
342 - |
343 if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
344 CMAKE_URL="http://www.cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz"
345 mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
346 export PATH=${DEPS_DIR}/cmake/bin:${PATH}
347 fi
348
349 ############################################################################
350 # Go back to ${TRAVIS_BUILD_DIR}
351 ############################################################################
352
353 - cd ${TRAVIS_BUILD_DIR}
354
355 ############################################################################
onqtam01158572016-06-28 14:29:32 +0300356 # Install stuff with homebrew under OSX
357 ############################################################################
onqtamc7aaa962016-09-10 02:16:57 +0300358
onqtam23c6a342016-06-28 14:09:10 +0300359 - |
onqtame4c75fc2016-05-21 01:24:48 +0300360 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
361 brew update
362 # brew install ccache
363 brew install valgrind
364 # cmake
365 if brew list -1 | grep -q "^cmake\$"; then
366 brew outdated cmake || brew upgrade cmake
367 else
368 brew install cmake
369 fi
370 # gcc
371 if [[ "${COMPILER}" = "g++-4.4" ]]; then
372 brew install gcc44
373 fi
374 if [[ "${COMPILER}" = "g++-4.5" ]]; then
375 brew install gcc45
376 fi
377 if [[ "${COMPILER}" = "g++-4.6" ]]; then
378 brew install gcc46
379 fi
380 if [[ "${COMPILER}" = "g++-4.7" ]]; then
381 brew install gcc47
382 fi
383 if [[ "${COMPILER}" = "g++-4.8" ]]; then
onqtamb1a3de82016-10-10 22:22:00 +0300384 brew install gcc48
onqtame4c75fc2016-05-21 01:24:48 +0300385 fi
386 if [[ "${COMPILER}" = "g++-4.9" ]]; then
387 brew install gcc49
388 fi
389 if [[ "${COMPILER}" = "g++-5" ]]; then
390 brew install gcc5
391 fi
392 if [[ "${COMPILER}" = "g++-6" ]]; then
393 brew install gcc6
394 fi
395 fi
onqtame4c75fc2016-05-21 01:24:48 +0300396 - export CXX="${COMPILER}"
onqtam9f934f82016-08-02 12:42:19 +0300397# - export CXX="ccache ${COMPILER}"
onqtame4c75fc2016-05-21 01:24:48 +0300398# - ccache -s
onqtam7dec6aa2016-06-26 16:01:15 +0300399
400before_script:
401 - ${CXX} --version
onqtame4c75fc2016-05-21 01:24:48 +0300402
403script:
404 # coverage - do not continue with other build configurations after that
405 - |
406 if [[ "${COVERALLS_SERVICE_NAME}" = "travis-ci" ]]; then
407 cmake ${CMAKE_OPTIONS_GLOBAL} -DCMAKE_BUILD_TYPE=Debug .
onqtam316fce22016-05-21 16:57:13 +0300408 make -k -j2 && make coveralls
onqtame4c75fc2016-05-21 01:24:48 +0300409 exit
410 fi
411
412 # initial run with options
onqtamcc350302016-06-28 14:36:28 +0300413 - cmake ${CMAKE_OPTIONS_GLOBAL} ${CMAKE_OPTIONS} -DCMAKE_CXX_COMPILER=${CXX} .
onqtame4c75fc2016-05-21 01:24:48 +0300414
onqtam1586ea22016-05-21 18:02:26 +0300415 # debug x64
onqtamfa5a8522016-06-26 20:15:56 +0300416 - cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -m64" .
onqtam1586ea22016-05-21 18:02:26 +0300417 - make clean && make -k -j2
onqtam8e44b182016-05-22 05:28:31 +0300418 # valgrind for 64bit under osx fails TOO
419 - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then cmake -DTEST_MODE=VALGRIND . && ctest --output-on-failure ; fi
onqtam5cab8e92016-10-10 17:58:38 +0300420 - cmake -DTEST_MODE=COMPARE . && ctest --output-on-failure
onqtam1586ea22016-05-21 18:02:26 +0300421 # release x64
onqtamfa5a8522016-06-26 20:15:56 +0300422 - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -m64" .
onqtam1586ea22016-05-21 18:02:26 +0300423 - make clean && make -k -j2
onqtam8e44b182016-05-22 05:28:31 +0300424 # valgrind for 64bit under osx fails TOO
425 - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then cmake -DTEST_MODE=VALGRIND . && ctest --output-on-failure ; fi
onqtam5cab8e92016-10-10 17:58:38 +0300426 - cmake -DTEST_MODE=COMPARE . && ctest --output-on-failure
onqtame4c75fc2016-05-21 01:24:48 +0300427 # debug x86
onqtamfa5a8522016-06-26 20:15:56 +0300428 - cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -m32" .
onqtam316fce22016-05-21 16:57:13 +0300429 - make clean && make -k -j2
onqtame4c75fc2016-05-21 01:24:48 +0300430 # valgrind for 32bit under osx fails
431 - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then cmake -DTEST_MODE=VALGRIND . && ctest --output-on-failure ; fi
onqtam1586ea22016-05-21 18:02:26 +0300432 - cmake -DTEST_MODE=COMPARE . && ctest --output-on-failure
onqtame4c75fc2016-05-21 01:24:48 +0300433 # release x86
onqtamfa5a8522016-06-26 20:15:56 +0300434 - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -m32" .
onqtam316fce22016-05-21 16:57:13 +0300435 - make clean && make -k -j2
onqtame4c75fc2016-05-21 01:24:48 +0300436 # valgrind for 32bit under osx fails
437 - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then cmake -DTEST_MODE=VALGRIND . && ctest --output-on-failure ; fi
onqtam1586ea22016-05-21 18:02:26 +0300438 - cmake -DTEST_MODE=COMPARE . && ctest --output-on-failure
onqtame4c75fc2016-05-21 01:24:48 +0300439
440 # sanitizers - again 32/64 bit Debug/Release configs through address/undefined sanitizers
onqtamfba7fb72016-08-22 14:18:24 +0300441 - cmake -DTEST_MODE=NORMAL .
onqtame4c75fc2016-05-21 01:24:48 +0300442 # on separate commands because when something fails I want to see which one exactly
onqtam84b19bc2016-08-26 12:40:31 +0300443 # TODO: when this http://stackoverflow.com/questions/39081183 gets resolved - add these to ASAN as well: check_initialization_order=true:strict_init_order=true
444 - if [[ "${HAS_ASAN_64}" = "true" ]]; then cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -g -fno-omit-frame-pointer -m64 -fsanitize=address" . && make clean && make -k -j2 && ASAN_OPTIONS=verbosity=2:strict_string_checks=true:detect_odr_violation=2:detect_stack_use_after_return=true ctest --output-on-failure ; fi
445 - if [[ "${HAS_ASAN_32}" = "true" ]]; then cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -g -fno-omit-frame-pointer -m32 -fsanitize=address" . && make clean && make -k -j2 && ASAN_OPTIONS=verbosity=2:strict_string_checks=true:detect_odr_violation=2:detect_stack_use_after_return=true ctest --output-on-failure ; fi
446 - if [[ "${HAS_ASAN_64}" = "true" ]]; then cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -g -fno-omit-frame-pointer -m64 -fsanitize=address" . && make clean && make -k -j2 && ASAN_OPTIONS=verbosity=2:strict_string_checks=true:detect_odr_violation=2:detect_stack_use_after_return=true ctest --output-on-failure ; fi
447 - if [[ "${HAS_ASAN_32}" = "true" ]]; then cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -g -fno-omit-frame-pointer -m32 -fsanitize=address" . && make clean && make -k -j2 && ASAN_OPTIONS=verbosity=2:strict_string_checks=true:detect_odr_violation=2:detect_stack_use_after_return=true ctest --output-on-failure ; fi
448 - if [[ "${HAS_UBSAN_64}" = "true" ]]; then cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -g -fno-omit-frame-pointer -m64 -fsanitize=undefined" . && make clean && make -k -j2 && UBSAN_OPTIONS=verbosity=2 ctest --output-on-failure ; fi
449 - if [[ "${HAS_UBSAN_32}" = "true" ]]; then cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -g -fno-omit-frame-pointer -m32 -fsanitize=undefined" . && make clean && make -k -j2 && UBSAN_OPTIONS=verbosity=2 ctest --output-on-failure ; fi
450 - if [[ "${HAS_UBSAN_64}" = "true" ]]; then cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -g -fno-omit-frame-pointer -m64 -fsanitize=undefined" . && make clean && make -k -j2 && UBSAN_OPTIONS=verbosity=2 ctest --output-on-failure ; fi
451 - if [[ "${HAS_UBSAN_32}" = "true" ]]; then cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -g -fno-omit-frame-pointer -m32 -fsanitize=undefined" . && make clean && make -k -j2 && UBSAN_OPTIONS=verbosity=2 ctest --output-on-failure ; fi
onqtame4c75fc2016-05-21 01:24:48 +0300452
onqtam5cab8e92016-10-10 17:58:38 +0300453 # test c++0x mode for warnings
454 - cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${ADDITIONAL_CXX_FLAGS} -m64" -DWITH_CPP11=1 .
455 - make clean && make -k -j2
456
onqtame4c75fc2016-05-21 01:24:48 +0300457# - ccache -s
458
onqtam2dd55282016-06-13 18:05:38 +0300459#after_script:
460# - cat compile_commands.json