summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/ctest_build.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-12-07 15:39:25 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-12-05 16:53:35 (GMT)
commit1f0c28c84016602a4b24facb025706f42f717037 (patch)
tree2a07d49c207feb9f22d5329d521800b3ca25e6d4 /.gitlab/ci/ctest_build.cmake
parent57b94595a3a0056aef1446ce1827dd945261d362 (diff)
downloadCMake-1f0c28c84016602a4b24facb025706f42f717037.zip
CMake-1f0c28c84016602a4b24facb025706f42f717037.tar.gz
CMake-1f0c28c84016602a4b24facb025706f42f717037.tar.bz2
ci: export clang-tidy fixes as an artifact
Diffstat (limited to '.gitlab/ci/ctest_build.cmake')
-rw-r--r--.gitlab/ci/ctest_build.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_build.cmake b/.gitlab/ci/ctest_build.cmake
index b1b9830..4a18cf9 100644
--- a/.gitlab/ci/ctest_build.cmake
+++ b/.gitlab/ci/ctest_build.cmake
@@ -65,6 +65,7 @@ if ("$ENV{CTEST_NO_WARNINGS_ALLOWED}" AND num_warnings GREATER 0)
message(FATAL_ERROR
"Found ${num_warnings} warnings (treating as fatal).")
endif ()
+file(WRITE "$ENV{CI_PROJECT_DIR}/.gitlab/num_warnings.txt" "${num_warnings}\n")
if (ctest_build_args)
message(FATAL_ERROR