diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-11-02 00:59:44 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-11-02 19:24:45 (GMT) |
commit | a518e402c5dc1f2677e6cb1ef529b8d886b585d5 (patch) | |
tree | ac5d540e66ba845545ed0082574d79466ba4e9d1 /.gitlab/ci/ctest_test.cmake | |
parent | ae84de5a0c204bbb6ad808f9bae36ef71dcc4ca1 (diff) | |
download | CMake-a518e402c5dc1f2677e6cb1ef529b8d886b585d5.zip CMake-a518e402c5dc1f2677e6cb1ef529b8d886b585d5.tar.gz CMake-a518e402c5dc1f2677e6cb1ef529b8d886b585d5.tar.bz2 |
ci: generate annotation reports
These will render links in the sidebar for each job.
See: https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html#artifactsreportsannotations
Diffstat (limited to '.gitlab/ci/ctest_test.cmake')
-rw-r--r-- | .gitlab/ci/ctest_test.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_test.cmake b/.gitlab/ci/ctest_test.cmake index b02d032..c155ab3 100644 --- a/.gitlab/ci/ctest_test.cmake +++ b/.gitlab/ci/ctest_test.cmake @@ -25,6 +25,14 @@ ctest_test( EXCLUDE "${test_exclusions}") ctest_submit(PARTS Test) +include("${CMAKE_CURRENT_LIST_DIR}/ctest_annotation.cmake") +ctest_annotation_report("${CTEST_BINARY_DIRECTORY}/annotations.json" + "Build Summary" "https://open.cdash.org/build/${build_id}" + "All Tests" "https://open.cdash.org/viewTest.php?buildid=${build_id}" + "Test Failures" "https://open.cdash.org/viewTest.php?onlyfailed&buildid=${build_id}" + "Tests Not Run" "https://open.cdash.org/viewTest.php?onlynotrun&buildid=${build_id}" + "Test Passes" "https://open.cdash.org/viewTest.php?onlypassed&buildid=${build_id}") + if (test_result) message(FATAL_ERROR "Failed to test") |