From: Ivan Maidanski Date: Wed, 29 Mar 2017 20:22:14 +0000 (+0300) Subject: Travis CI: Also test with Address and Memory sanitizers X-Git-Tag: v8.0.0~803 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a5e3c2fd605734bd92b30a6321fef463b62599e;p=gc Travis CI: Also test with Address and Memory sanitizers --- diff --git a/.travis.yml b/.travis.yml index dbbfd94b..e350d74e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -174,13 +174,37 @@ matrix: language: c env: - CONF_OPTIONS="--disable-parallel-mark --enable-gc-assertions" + - os: linux + addons: + apt: + packages: [ clang-4.0 ] + sources: [ llvm-toolchain-trusty-4.0 ] + compiler: clang-4.0 + dist: trusty + language: c + env: + - CXX=clang++-4.0 + - CFLAGS_EXTRA="-fsanitize=address -fno-common -fno-omit-frame-pointer" + - CONF_OPTIONS="--enable-cplusplus" + - os: linux + addons: + apt: + packages: [ clang-4.0 ] + sources: [ llvm-toolchain-trusty-4.0 ] + compiler: clang-4.0 + dist: trusty + language: c + env: + - CFLAGS_EXTRA="-fsanitize=memory -fno-omit-frame-pointer" + - CONF_OPTIONS="--enable-munmap" + - MSAN_OR_UBSAN=true + sudo: required - os: linux compiler: clang env: - CFLAGS_EXTRA="-fsanitize=undefined -fno-common -fno-omit-frame-pointer" - MSAN_OR_UBSAN=true - CONF_OPTIONS="--enable-cplusplus --enable-munmap" -# TODO: Add testing with ASan/MSan when clang-3.8 available. before_install: - if [[ "$CPPCHECK_ENABLE" != "" ]]; then