[travis] add linux jobs that run address and integer sanitizers

This commit is contained in:
Dane Springmeyer 2016-05-03 16:18:44 -07:00
parent 68c3bafab0
commit ab3835d249

View File

@ -4,6 +4,22 @@ sudo: false
matrix:
include:
# debug+integer-santizer build
- os: linux
compiler: clang
env: BUILDTYPE=Debug CC="clang-3.5" CXX="clang++-3.5" CXXFLAGS="-fsanitize=integer" CFLAGS="-fsanitize=integer" LDFLAGS="-fsanitize=integer"
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
# debug+leak+address-sanitizer build
- os: linux
compiler: clang
env: BUILDTYPE=Debug ASAN_OPTIONS=detect_leaks=1 CC="clang-3.5" CXX="clang++-3.5" CXXFLAGS="-fsanitize=address" CFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address"
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
# coverage+debug build
- os: linux
compiler: clang