
This makes ENABLE_SANITIZERS a proper cached variable, removes some spurious failures and configures asan/ubsan to die on an error.
12 lines
289 B
Bash
Executable File
12 lines
289 B
Bash
Executable File
#!/bin/sh -xe
|
|
|
|
if echo $TRAVIS_TAG | grep ^v; then BUILD_TYPE=RelWithDebInfo; else BUILD_TYPE=Debug; fi
|
|
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 \
|
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
|
-DENABLE_COVERAGE=ON \
|
|
-DENABLE_SANITIZERS=ON
|
|
make VERBOSE=1
|