Work on better CI integration.

This commit is contained in:
Steffen Schuemann 2019-05-21 07:47:54 +02:00
parent 4d880e1be9
commit 2a15f1833f
2 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@ before_script:
- cd build
- export VERBOSE=1
- |
if [ "${GHC_COVERAGE}" = "1" ]; then
if [ "${CONFIG}" = "Debug" ]; then
cmake -G"${GENERATOR}" -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_C_COMPILER=${CC} -DCMAKE_BUILD_TYPE=${CONFIG} -DGHC_COVERAGE=ON ..
else
cmake -G"${GENERATOR}" -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_C_COMPILER=${CC} -DCMAKE_BUILD_TYPE=${CONFIG} ..

View File

@ -4,6 +4,7 @@ set(PARSE_CATCH_TESTS_ADD_TO_CONFIGURE_DEPENDS ON)
include(ParseAndAddCatchTests)
if(GHC_COVERAGE)
message("Generating test runner for normal test...")
add_executable(filesystem_test filesystem_test.cpp catch.hpp)
target_link_libraries(filesystem_test ghc_filesystem)
target_compile_options(filesystem_test PRIVATE