Commit a804c552 authored by Michaël Roynard's avatar Michaël Roynard Committed by Michaël Roynard

Fix cmake test target and call unit tests inside pipeline

parent 12225f54
Pipeline #2156 passed with stage
in 1 minute and 40 seconds
......@@ -45,6 +45,10 @@ stages:
- cmake --build .
--target $TARGET
--config $RELEASE_TYPE
- ctest -C $RELEASE_TYPE
- cd ..
- conan create
--build missing
add_custom_target(tests-compile ALL COMMENT "Build all the unit tests.")
add_custom_target(tests EXCLUDE_FROM_ALL
DEPENDS tests-compile
COMMAND ${CMAKE_CTEST_COMMAND} -C ${CMAKE_CONFIGURATION_TYPES} --output-on-failure --schedule-random --verbose
COMMENT "Build and run all the unit tests.")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment