From b75bb7540a027e408c30046f66a1cbd7f15c8ae9 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Tue, 15 May 2018 18:25:50 +0200 Subject: Check code quality with clang-format-diff on merge requests --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a73cfae00..af8c93966 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,6 +32,14 @@ inkscape:linux: paths: - build/ +inkscape:codequality: + stage: build + script: + - git fetch https://gitlab.com/inkscape/inkscape.git + - git diff FETCH_HEAD -U0 --no-color | clang-format-diff-6.0 -p1 -style file | tee clang_format_diff + - if [[ -s clang_format_diff ]]; then false; fi + allow_failure: true + inkscape:mac: stage: build tags: -- cgit v1.2.3