blob: b974875737c6ee342cd5f6c0a624b769a4564e1f [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:
Stefan Schake10d90f52018-05-10 02:03:36 +020013 - git diff -U0 --no-color master...HEAD | clang-format-diff-3.5 -p 1 -style=file > format-fixup.patch
Stefan Schake02346782018-05-05 02:39:33 +020014 - 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