aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dcd893a21..068112c3a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
stages:
- build
- test
+ - clang-tidy
.build-template: &build-template
stage: build
@@ -89,3 +90,12 @@ test:gentoo:
- build:gentoo
<<: *test-template
+clang-tidy:
+ stage: clang-tidy
+ dependencies:
+ - build:exherbo-clang
+ image: paludis/exherbo-clang
+ script:
+ - export PATH="${PATH}:$(llvm-config --prefix)/share/clang"
+ - run-clang-tidy.py -j$(nproc) -p build-obj/ -header-filter="${PWD}/.*"
+