Travis: Split build and test scripts

This commit is contained in:
Benoit Blanchon committed 2019-03-01 09:15:43 +01:00
1 parent cfd924622e
commit d11019d9e1
3 files changed
+25 -22

No files matched your search

+14
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 .