diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-10 16:54:48 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-10 16:54:48 +0200 |
| commit | 54a44fd6a164fd85f806b3dc00a202e3dc591f1c (patch) | |
| tree | 79e0212da6b49936444b2b9b924eb1701e4b8829 /.gitlab-ci.yml | |
| parent | b2c79267b1fa78916c7d1ef03c2d93a78d41f271 (diff) | |
adding lint
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40e9ae4..661ff2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - build - test + - lint variables: BUILD_TYPE: Release @@ -37,4 +38,20 @@ test: script: - apt-get update && apt-get install -y jq - - ./perft.bash
\ No newline at end of file + - ./perft.bash +clang-tidy: + stage: lint + image: ubuntu:24.04 + + rules: + - if: $CI_COMMIT_BRANCH == "main" + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + + before_script: + - apt-get update + - apt-get install -y cmake gcc-14 g++-14 clang-tidy + script: + - export CC=gcc-14 + - export CXX=g++-14 + - cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + - run-clang-tidy -p build src
\ No newline at end of file |
