Travis CI updates:

* Use clang 3.8
* Add msan/usan variants
* Build only gcc.coverage and clang.{asan,usan,msan}
* Make sure (correct) llvm-symbolizer is on PATH
This commit is contained in:
Nicholas Dudfield
2016-05-09 23:06:38 +07:00
committed by Vinnie Falco
parent 651fb45598
commit f3b2153ba7
4 changed files with 69 additions and 43 deletions

View File

@@ -6,7 +6,16 @@ set -ex
################################## ENVIRONMENT #################################
export PATH=$VALGRIND_ROOT/bin:$LCOV_ROOT/usr/bin:$PATH
# If not CI, then set some defaults
if [[ "${CI:-}" == "" ]]; then
TRAVIS_BRANCH=${TRAVIS_BRANCH:-feature}
CC=${CC:-gcc}
ADDRESS_MODEL=${ADDRESS_MODEL:-64}
VARIANT=${VARIANT:-debug}
# If running locally we assume we have lcov/valgrind on PATH
else
export PATH=$VALGRIND_ROOT/bin:$LCOV_ROOT/usr/bin:$PATH
fi
echo "using toolset: $CC"
echo "using variant: $VARIANT"
@@ -46,8 +55,8 @@ if [[ $VARIANT == "coverage" ]]; then
# We need to wait a while so wstest can connect!
sleep 5
# cd scripts && wstest -m fuzzingclient
# cd ..
cd scripts && wstest -m fuzzingclient
cd ..
# Show the output
cat nohup.out
rm nohup.out

View File

@@ -9,7 +9,7 @@ do
test -x $( type -p ${g}-$GCC_VER )
ln -sv $(type -p ${g}-$GCC_VER) $HOME/bin/${g}
done
for c in clang clang++
for c in clang clang++ llvm-symbolizer
do
test -x $( type -p ${c}-$CLANG_VER )
ln -sv $(type -p ${c}-$CLANG_VER) $HOME/bin/${c}