🔧 explicitly switch on tests in CI

This commit is contained in:
Niels Lohmann 2020-05-27 13:22:14 +02:00
parent ed5c28d00c
commit 325e8ab8ab
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
8 changed files with 9 additions and 18 deletions

View file

@ -321,13 +321,9 @@ script:
# by default, use the single-header version
- if [[ "${MULTIPLE_HEADERS}" == "" ]]; then export MULTIPLE_HEADERS=OFF; fi
# show OS/compiler version
- uname -a
- $CXX --version
# compile and execute unit tests
- mkdir -p build && cd build
- cmake .. ${CMAKE_OPTIONS} -DJSON_MultipleHeaders=${MULTIPLE_HEADERS} -GNinja && cmake --build . --config Release
- cmake .. ${CMAKE_OPTIONS} -DJSON_MultipleHeaders=${MULTIPLE_HEADERS} -GNinja && cmake --build . --config Release -DJSON_BuildTests=On
- ctest -C Release --timeout 2700 -V -j
- cd ..