aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2019-02-05 13:24:26 +0100
committerAvatar Marvin Schmidt <marv@exherbo.org> 2019-04-26 13:55:14 +0200
commitb7164eea5c7aeb5f230bdac881170520bf6b2de7 (patch)
tree8daeb37252987bff61138eb655a3c62935690b29 /.gitlab-ci.yml
parent5fa2044f91ef709ae076927bc354ce6f78905356 (diff)
downloadpaludis-b7164eea5c7aeb5f230bdac881170520bf6b2de7.tar.gz
paludis-b7164eea5c7aeb5f230bdac881170520bf6b2de7.tar.xz
ci: Add clang-tidy stage
Created using: $ clang-tidy -dump-config > .clang-tidy with $ clang-tidy --version LLVM (http://llvm.org/): LLVM version 8.0.0svn Optimized build with assertions. Default target: x86_64-pc-linux-gnu Host CPU: penryn
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}/.*"
+