From d6f5e67f7bce23d77ab98ef935f53d467b562bab Mon Sep 17 00:00:00 2001 From: Igor-Mikhail-Valentin Glebov Date: Sat, 8 Oct 2022 15:14:40 -0400 Subject: ci: add clang-tidy plugin to clang-tidy job --- .gitlab/ci/configure_fedora36_tidy.cmake | 2 ++ .gitlab/ci/env_fedora36_tidy.sh | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 .gitlab/ci/env_fedora36_tidy.sh 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 -- cgit v0.12