mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-23 15:27:30 +02:00
Travis: build in Release mode
This commit is contained in:
@ -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 .
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user