From 00f9228041cb7e7e6fa505c68bf7b70b0afaf26f Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 7 Apr 2022 11:09:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D0=B0=20Clang-Tidy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml.example | 4 ++++ scheduled.yml | 14 ++++++++++++++ 2 files changed, 18 insertions(+) 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 +