diff --git a/.gitlab-ci.yml.example b/.gitlab-ci.yml.example index 00da56c..5465043 100644 --- a/.gitlab-ci.yml.example +++ b/.gitlab-ci.yml.example @@ -36,3 +36,7 @@ check-format-sources: analyze-pvs: when: manual extends: .analyze-pvs + +analyze-clang-tidy: + when: manual + extends: .analyze-clang-tidy diff --git a/scheduled.yml b/scheduled.yml index 92e0a89..0827304 100644 --- a/scheduled.yml +++ b/scheduled.yml @@ -160,3 +160,17 @@ variables: plog-converter -a "GA:1,2,3;64:1;OP:1,2;CS:1,2" -t errorfile PVS-Studio.log fi +.analyze-clang-tidy: + variables: + CMAKE_GENERATOR: Ninja + image: jammy-dev + tags: ['analyze'] + script: + - > + if [ -n "${CUSTOM_ANALYZE_CLANG_TIDY}" ]; then + ${CUSTOM_ANALYZE_CLANG_TIDY} + else + cmake -DCMAKE_CXX_CLANG_TIDY="clang-tidy" -B build . + cmake --build build -j + fi +