Travis: Split build and test scripts

This commit is contained in:
Benoit Blanchon
2019-02-28 18:00:06 +01:00
parent cfd924622e
commit d11019d9e1
3 changed files with 25 additions and 22 deletions

14
scripts/travis/build.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh -ex
export CC="$_CC"
export CXX="$_CXX"
if [ -n "$SANITIZE" ]; then
export CXXFLAGS="-fsanitize=$SANITIZE"
BUILD_TYPE="Debug"
else
BUILD_TYPE="Release"
fi
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
cmake --build .