summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-09-11 19:59:50 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-09-11 19:59:50 +0000
commitfc74c262005f80d37b60cf408a0bfbee52707ca5 (patch)
tree503161f9c69888e8dc189c72010815f3b36f191c /.gitlab-ci.yml
parentCache preference raw values (diff)
downloadinkscape-fc74c262005f80d37b60cf408a0bfbee52707ca5.tar.gz
inkscape-fc74c262005f80d37b60cf408a0bfbee52707ca5.zip
Add gitlab job for protected code
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml9
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: