From: Ivan Maidanski Date: Wed, 29 Nov 2017 08:20:04 +0000 (+0300) Subject: Travis CI: Test with ASan and GCC X-Git-Tag: v8.0.0~486 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03dafe9c;p=gc Travis CI: Test with ASan and GCC --- diff --git a/.travis.yml b/.travis.yml index 843e4381..c1a165a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -308,6 +308,21 @@ matrix: - CONF_OPTIONS="--enable-cplusplus --enable-static" - NO_CLONE_LIBATOMIC_OPS=true - TESTS_CUSTOM_RUN=true + - os: linux + addons: + apt: + packages: + - gcc-5 + sources: + - ubuntu-toolchain-r-test + compiler: gcc-5 + dist: trusty + language: c + env: + - CFLAGS_EXTRA="-fsanitize=address -O0" + - CONF_OPTIONS="--enable-gc-assertions --enable-handle-fork" + - LDFLAGS="-fuse-ld=gold" + - NO_CLONE_LIBATOMIC_OPS=true - os: osx env: - CFLAGS_EXTRA="-fsanitize=address -m32 -fno-omit-frame-pointer" @@ -496,7 +511,8 @@ script: fi - if [[ "$CSA_CHECK" != true && "$CPPCHECK_ENABLE" == "" && "$COVERITY_SCAN_BRANCH" != 1 ]]; then - make -j -f $MAKEFILE_NAME $MAKEFILE_TARGETS CFLAGS_EXTRA="$CFLAGS_EXTRA"; + make -j -f $MAKEFILE_NAME $MAKEFILE_TARGETS CFLAGS_EXTRA="$CFLAGS_EXTRA" + LDFLAGS="$LDFLAGS"; fi - if [ -f gctest.log ]; then cat gctest.log; fi - if [[ "$CSA_CHECK" == true ]]; then