mirror of
https://github.com/nlohmann/json.git
synced 2024-07-22 22:21:54 +02:00
Properly select the build type for Travis
This commit is contained in:
parent
f78d456075
commit
7092890ff1
|
@ -324,10 +324,13 @@ script:
|
||||||
# append CXX_STANDARD to CMAKE_OPTIONS if required
|
# append CXX_STANDARD to CMAKE_OPTIONS if required
|
||||||
- CMAKE_OPTIONS+=${CXX_STANDARD:+ -DCMAKE_CXX_STANDARD=$CXX_STANDARD -DCMAKE_CXX_STANDARD_REQUIRED=ON}
|
- CMAKE_OPTIONS+=${CXX_STANDARD:+ -DCMAKE_CXX_STANDARD=$CXX_STANDARD -DCMAKE_CXX_STANDARD_REQUIRED=ON}
|
||||||
|
|
||||||
|
# build configuration
|
||||||
|
- CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE=Debug"
|
||||||
|
|
||||||
# compile and execute unit tests
|
# compile and execute unit tests
|
||||||
- mkdir -p build && cd build
|
- mkdir -p build && cd build
|
||||||
- cmake .. ${CMAKE_OPTIONS} -DJSON_MultipleHeaders=${MULTIPLE_HEADERS} -DJSON_ImplicitConversions=${IMPLICIT_CONVERSIONS} -DJSON_BuildTests=On -GNinja && cmake --build . --config Release
|
- cmake .. ${CMAKE_OPTIONS} -DJSON_MultipleHeaders=${MULTIPLE_HEADERS} -DJSON_ImplicitConversions=${IMPLICIT_CONVERSIONS} -DJSON_BuildTests=On -GNinja && cmake --build .
|
||||||
- ctest -C Release --timeout 2700 -V -j
|
- ctest --timeout 2700 -V -j
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
# check if homebrew works (only checks develop branch)
|
# check if homebrew works (only checks develop branch)
|
||||||
|
|
Loading…
Reference in a new issue