summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci
diff options
context:
space:
mode:
authorIgor-Mikhail-Valentin Glebov <iglebov@albany.edu>2022-10-08 19:14:40 (GMT)
committerIgor-Mikhail-Valentin Glebov <iglebov@albany.edu>2022-10-12 17:39:30 (GMT)
commitd6f5e67f7bce23d77ab98ef935f53d467b562bab (patch)
tree593f7082bbba8feb80589eca5aed4b15dd940a0d /.gitlab/ci
parent6c6912123e8cc11af616744683d134e4dee37873 (diff)
downloadCMake-d6f5e67f7bce23d77ab98ef935f53d467b562bab.zip
CMake-d6f5e67f7bce23d77ab98ef935f53d467b562bab.tar.gz
CMake-d6f5e67f7bce23d77ab98ef935f53d467b562bab.tar.bz2
ci: add clang-tidy plugin to clang-tidy job
Diffstat (limited to '.gitlab/ci')
-rw-r--r--.gitlab/ci/configure_fedora36_tidy.cmake2
-rw-r--r--.gitlab/ci/env_fedora36_tidy.sh3
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_fedora36_tidy.cmake b/.gitlab/ci/configure_fedora36_tidy.cmake
index 38414d3..2d0eeeb 100644
--- a/.gitlab/ci/configure_fedora36_tidy.cmake
+++ b/.gitlab/ci/configure_fedora36_tidy.cmake
@@ -1,3 +1,5 @@
set(CMake_RUN_CLANG_TIDY ON CACHE BOOL "")
+set(CMake_USE_CLANG_TIDY_MODULE ON CACHE BOOL "")
+set(CMake_CLANG_TIDY_MODULE "$ENV{CI_PROJECT_DIR}/Utilities/ClangTidyModule/build/libcmake-clang-tidy-module.so" CACHE FILEPATH "")
include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora36_common.cmake")
diff --git a/.gitlab/ci/env_fedora36_tidy.sh b/.gitlab/ci/env_fedora36_tidy.sh
new file mode 100644
index 0000000..428b60e
--- /dev/null
+++ b/.gitlab/ci/env_fedora36_tidy.sh
@@ -0,0 +1,3 @@
+cmake -S Utilities/ClangTidyModule -B Utilities/ClangTidyModule/build
+cmake --build Utilities/ClangTidyModule/build
+ctest --test-dir Utilities/ClangTidyModule/build