diff options
| -rw-r--r-- | .gitlab-ci.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a2affd56f..5a9ab1675 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,10 +71,19 @@ codequality: stage: build script: - git fetch https://gitlab.com/inkscape/inkscape.git + - echo "Your commit does not comply exactly with the clang-format style checker.\nPlease review the following diff or apply it with\n \$ git apply <<EOF" - git diff FETCH_HEAD -U0 --no-color | clang-format-diff-6.0 -p1 -style file | tee clang_format_diff + - echo "EOF" - if [[ -s clang_format_diff ]]; then false; fi allow_failure: true +codeprotect: + stage: build + script: + - git fetch https://gitlab.com/inkscape/inkscape.git + - git diff FETCH_HEAD -U0 --no-color src/2geom/ src/3rdparty/adaptagrams/ src/3rdparty/libdepixelize src/3rdparty/libuemf | tee forbidden + - if [[ -s forbidden ]]; then echo "This commit modifies files that are in an dependency library. Make sure you update upstream first, *then* force the merge in Inkscape."; false; fi + source-doc: stage: build only: |
