]> granicus.if.org Git - gc/commitdiff
Travis CI: Also test with Address and Memory sanitizers
authorIvan Maidanski <ivmai@mail.ru>
Wed, 29 Mar 2017 20:22:14 +0000 (23:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 29 Mar 2017 20:22:14 +0000 (23:22 +0300)
.travis.yml

index dbbfd94b95ebb42902257454dc2b1d0c807ac47c..e350d74eac068cbee801f931720a47c20447ae74 100644 (file)
@@ -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