1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Merge topic 'ci-test-ext-done'

7829136a6f gitlab-ci: Tell CDash when a test-ext job is done

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !5971
This commit is contained in:
Brad King
2021-04-02 14:23:52 +00:00
committed by Kitware Robot

View File

@@ -28,6 +28,7 @@ ctest_submit(PARTS Update)
ctest_submit(PARTS Configure)
if (configure_result)
ctest_submit(PARTS Done)
message(FATAL_ERROR
"Failed to configure")
endif ()
@@ -50,11 +51,13 @@ ctest_build(
ctest_submit(PARTS Build)
if (build_result)
ctest_submit(PARTS Done)
message(FATAL_ERROR
"Failed to build")
endif ()
if ("$ENV{CTEST_NO_WARNINGS_ALLOWED}" AND num_warnings GREATER 0)
ctest_submit(PARTS Done)
message(FATAL_ERROR
"Found ${num_warnings} warnings (treating as fatal).")
endif ()
@@ -74,6 +77,9 @@ ctest_test(
ctest_submit(PARTS Test)
if (test_result)
ctest_submit(PARTS Done)
message(FATAL_ERROR
"Failed to test")
endif ()
ctest_submit(PARTS Done)