blob: 24c4a0ab5eace4ab55714126165067dd443c6098 [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
Sean Paul5c23d5d2018-07-13 12:51:42 -04005 - apt-get --quiet install --yes clang-format-5.0 git >/dev/null
Stefan Schake02346782018-05-05 02:39:33 +02006
7stages:
8 - style
9
10clang-format:
11 stage: style
12 script:
John Stultzc660b3d2018-05-29 16:50:23 -070013 - git fetch https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer.git
Sean Paul5c23d5d2018-07-13 12:51:42 -040014 - git diff -U0 --no-color FETCH_HEAD...HEAD -- | clang-format-diff-5.0 -p 1 -style=file > format-fixup.patch
Stefan Schake02346782018-05-05 02:39:33 +020015 - if [ -s format-fixup.patch ]; then cat format-fixup.patch && exit 1; fi
16 artifacts:
17 when: on_failure
18 paths:
19 - format-fixup.patch