blob: 144eb2eb2c1189c93014319e6043bd0341814208 [file] [log] [blame]
Stefan Schake02346782018-05-05 02:39:33 +02001image: ubuntu:16.04
2
3before_script:
4 - apt-get --quiet update --yes >/dev/null
5 - apt-get --quiet install --yes clang-format-3.5 git >/dev/null
6
7stages:
8 - style
9
10clang-format:
11 stage: style
12 script:
13 - git diff -U --no-color master...HEAD | clang-format-diff-3.5 -p 1 -style=file > format-fixup.patch
14 - if [ -s format-fixup.patch ]; then cat format-fixup.patch && exit 1; fi
15 artifacts:
16 when: on_failure
17 paths:
18 - format-fixup.patch