blob: 43bce5fc642470116d065af9ee272096939cd3d7 [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:
John Stultzc660b3d2018-05-29 16:50:23 -070013 - git fetch https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer.git
14 - git diff -U0 --no-color FETCH_HEAD...HEAD -- | clang-format-diff-3.5 -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