[master] 5675aca Getting ASAN/UBSAN build in travis, take 2
Federico G. Schwindt
fgsch at lodoss.net
Sat Aug 19 02:02:06 CEST 2017
commit 5675aca187c85c283c1c212156002ed752c79b01
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Sat Aug 19 00:58:40 2017 +0100
Getting ASAN/UBSAN build in travis, take 2
Travis sets CC _after_ before_install so use a different variable.
diff --git a/.travis.yml b/.travis.yml
index f767631..088b05c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,13 +12,13 @@ matrix:
- os: linux
dist: trusty
compiler: clang
- env: CC=clang-4.0
+ env: CLANG=4.0
- os: osx
osx_image: xcode8.3
compiler: clang
allow_failures:
- os: osx
- - env: CC=clang-4.0
+ - env: CLANG=4.0
addons:
apt:
packages:
@@ -28,13 +28,14 @@ before_install:
brew update;
brew install docutils nghttp2;
fi
- - if [[ "$CC" == "clang-4.0" ]]; then
+ - if [[ "$CLANG" == "4.0" ]]; 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';
sudo apt-get update;
sudo apt-get install -y clang-4.0;
+ export CC="clang-4.0";
export CONFIGURE_ARGS="--enable-asan --enable-ubsan";
export ASAN_OPTIONS="detect_odr_violation=0,detect_leaks=0";
fi
More information about the varnish-commit
mailing list