Skip to content

Commit

Permalink
Update the travis-ci build
Browse files Browse the repository at this point in the history
- Revert to previous trusty image (ref. google/sanitizers/issues/837)
- Switch to xcode9 on osx
- Scaffolding to get the sanitizer job using clang 5.0
- ASAN: Disable stack protector
- ASAN: Ignore sigsegv and sigbus
  • Loading branch information
fgsch authored and hermunn committed Sep 15, 2017
1 parent 9b08d11 commit eb95883
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
sudo: required
language: c
group: deprecated-2017Q3
matrix:
include:
- os: linux
Expand All @@ -14,7 +15,7 @@ matrix:
compiler: clang
env: CLANG=4.0
- os: osx
osx_image: xcode8.3
osx_image: xcode9
compiler: clang
allow_failures:
- os: osx
Expand All @@ -28,16 +29,19 @@ before_install:
brew update;
brew install docutils nghttp2;
fi
- if [[ "$CLANG" == "4.0" ]]; then
- if [[ -n "$CLANG" ]]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key |
sudo apt-key add -;
sudo apt-add-repository -y
'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main';
"deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-$CLANG main";
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F;
sudo apt-add-repository -y
"deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main";
sudo apt-get update;
sudo apt-get install -y clang-4.0 llvm-4.0;
export CC=clang-4.0;
export CONFIGURE_ARGS="--enable-developer-warnings --enable-debugging-symbols --enable-asan --enable-ubsan";
export ASAN_OPTIONS=abort_on_error=1,detect_odr_violation=1,detect_leaks=1,detect_stack_use_after_return=1,detect_invalid_pointer_pairs=1;
sudo apt-get install -y clang-$CLANG llvm-$CLANG;
export CC=clang-$CLANG;
export CONFIGURE_ARGS="--enable-developer-warnings --enable-debugging-symbols --disable-stack-protector --enable-asan --enable-ubsan";
export ASAN_OPTIONS=abort_on_error=1,detect_odr_violation=1,detect_leaks=1,detect_stack_use_after_return=1,detect_invalid_pointer_pairs=1,handle_segv=0,handle_sigbus=0;
export LSAN_OPTIONS=suppressions=$(pwd)/tools/lsan.suppr;
export UBSAN_OPTIONS=halt_on_error=1,print_stacktrace=1,suppressions=$(pwd)/tools/ubsan.suppr;
fi
Expand Down

0 comments on commit eb95883

Please sign in to comment.