diff options
author | Brad King <brad.king@kitware.com> | 2021-04-02 10:25:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-02 10:57:21 (GMT) |
commit | 7829136a6fc582b52f5ff19d749b84f59cb8db78 (patch) | |
tree | ab14b471944b7dbae303217f5c0e898857638372 | |
parent | 1806d95e92962a7d676908cd6f1c6cd394332464 (diff) | |
download | CMake-7829136a6fc582b52f5ff19d749b84f59cb8db78.zip CMake-7829136a6fc582b52f5ff19d749b84f59cb8db78.tar.gz CMake-7829136a6fc582b52f5ff19d749b84f59cb8db78.tar.bz2 |
gitlab-ci: Tell CDash when a test-ext job is done
These jobs are self-contained and so can be re-run on their own to
produce a whole new submission to CDash. Tell CDash when each
submission is done so re-running a job replaces results rather than
accumulating them.
-rw-r--r-- | .gitlab/ci/ctest_test_external.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_test_external.cmake b/.gitlab/ci/ctest_test_external.cmake index 9e2d421..7a5e94a 100644 --- a/.gitlab/ci/ctest_test_external.cmake +++ b/.gitlab/ci/ctest_test_external.cmake @@ -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) |