Travis: build in Release mode

This commit is contained in:
Benoit Blanchon
2019-02-27 17:41:40 +01:00
parent f342dee2b4
commit 8dea900869
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -ex #!/bin/sh -ex
if [ $(uname) = 'Darwin' ]; then if [ "$(uname)" = 'Darwin' ]; then
URL=https://cmake.org/files/v3.4/cmake-3.4.3-Darwin-x86_64.tar.gz URL=https://cmake.org/files/v3.4/cmake-3.4.3-Darwin-x86_64.tar.gz
CMAKE=/tmp/CMake.app/Contents/bin/cmake CMAKE=/tmp/CMake.app/Contents/bin/cmake
CTEST=/tmp/CMake.app/Contents/bin/ctest CTEST=/tmp/CMake.app/Contents/bin/ctest
@ -23,8 +23,11 @@ fi
if [ -n "$SANITIZE" ]; then if [ -n "$SANITIZE" ]; then
export CXXFLAGS="-fsanitize=$SANITIZE" export CXXFLAGS="-fsanitize=$SANITIZE"
BUILD_TYPE="Debug"
else
BUILD_TYPE="Release"
fi fi
$CMAKE . $CMAKE -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
$CMAKE --build . $CMAKE --build .
$CTEST --output-on-failure . $CTEST --output-on-failure .

View File

@ -24,7 +24,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
-Wshadow -Wshadow
-Wsign-promo -Wsign-promo
-Wstrict-aliasing -Wstrict-aliasing
-Wstrict-overflow=5
-Wundef -Wundef
) )