Skip to content
Snippets Groups Projects
Verified Commit 56577317 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CI] Added clang-tidy job.

parent 23023dc6
No related branches found
No related tags found
No related merge requests found
......@@ -46,3 +46,4 @@ include:
- local: '/scripts/ci/jobs/tests-large.yml'
- local: '/scripts/ci/jobs/web.yml'
- local: '/scripts/ci/jobs/clang-sanitizer.yml'
- local: '/scripts/ci/jobs/clang-tidy.yml'
clang tidy:
stage: checks
tags:
- docker
extends:
- .defaults
- .rules-master-manual
variables:
BUILD_DIR: "build-tidy"
CMAKE_ARGS: "-DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DCMAKE_CXX_CLANG_TIDY=clang-tidy-9"
image:
name: $CONTAINER_CLANG_IMAGE
script:
- mkdir -p $BUILD_DIR
- cd $BUILD_DIR
- >
cmake .. -G Ninja
$CMAKE_ARGS
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DOGS_BUILD_PROCESSES=$BUILD_PROCESSES
- cmake --build . > >(tee make.output)
artifacts:
# No report yet: https://gitlab.com/gitlab-org/gitlab/-/issues/3985
paths:
- $BUILD_DIR/make.output
expire_in: 1 week
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment