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

[ci] Extracted clang-format into own job.

parent daf1bb79
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,20 @@ pre commit:
stage: preparation
image: $PRECOMMIT_IMAGE
needs: [ci_images]
allow_failure: true
variables:
SKIP: clang-format
script:
- pre-commit install
- pre-commit run --from-ref `git merge-base origin/master HEAD` --to-ref HEAD
- git diff --check `git merge-base origin/master HEAD` HEAD -- . ':!*.md' ':!*.pandoc' ':!*.asc' ':!*.dat' ':!*.ts'
clang-format:
stage: check
image: $PRECOMMIT_IMAGE
needs: [ci_images]
allow_failure: true
script:
- pre-commit install
- pre-commit run clang-format --from-ref `git merge-base origin/master HEAD` --to-ref HEAD
after_script:
- git diff
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