summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/ctest_configure.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-11-02 00:59:44 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-11-02 19:24:45 (GMT)
commita518e402c5dc1f2677e6cb1ef529b8d886b585d5 (patch)
treeac5d540e66ba845545ed0082574d79466ba4e9d1 /.gitlab/ci/ctest_configure.cmake
parentae84de5a0c204bbb6ad808f9bae36ef71dcc4ca1 (diff)
downloadCMake-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_configure.cmake')
-rw-r--r--.gitlab/ci/ctest_configure.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/.gitlab/ci/ctest_configure.cmake b/.gitlab/ci/ctest_configure.cmake
index 2682055..04285fd 100644
--- a/.gitlab/ci/ctest_configure.cmake
+++ b/.gitlab/ci/ctest_configure.cmake
@@ -22,10 +22,18 @@ ctest_configure(
# Read the files from the build directory.
ctest_read_custom_files("${CTEST_BINARY_DIRECTORY}")
-# We can now submit because we've configured. This is a cmb-superbuild-ism.
-ctest_submit(PARTS Update)
+# We can now submit because we've configured.
+ctest_submit(PARTS Update
+ BUILD_ID build_id)
ctest_submit(PARTS Configure)
+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}"
+ "Update" "https://open.cdash.org/build/${build_id}/update"
+ "Configure" "https://open.cdash.org/build/${build_id}/configure")
+store_build_id("${build_id}")
+
if (configure_result)
message(FATAL_ERROR
"Failed to configure")