Skip to content

Commit 7092890

Browse files
committed
Properly select the build type for Travis
1 parent f78d456 commit 7092890

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,13 @@ script:
324324
# append CXX_STANDARD to CMAKE_OPTIONS if required
325325
- CMAKE_OPTIONS+=${CXX_STANDARD:+ -DCMAKE_CXX_STANDARD=$CXX_STANDARD -DCMAKE_CXX_STANDARD_REQUIRED=ON}
326326

327+
# build configuration
328+
- CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE=Debug"
329+
327330
# compile and execute unit tests
328331
- mkdir -p build && cd build
329-
- cmake .. ${CMAKE_OPTIONS} -DJSON_MultipleHeaders=${MULTIPLE_HEADERS} -DJSON_ImplicitConversions=${IMPLICIT_CONVERSIONS} -DJSON_BuildTests=On -GNinja && cmake --build . --config Release
330-
- ctest -C Release --timeout 2700 -V -j
332+
- cmake .. ${CMAKE_OPTIONS} -DJSON_MultipleHeaders=${MULTIPLE_HEADERS} -DJSON_ImplicitConversions=${IMPLICIT_CONVERSIONS} -DJSON_BuildTests=On -GNinja && cmake --build .
333+
- ctest --timeout 2700 -V -j
331334
- cd ..
332335

333336
# check if homebrew works (only checks develop branch)

0 commit comments

Comments
 (0)