Commit 02346787 authored by Stefan Schake's avatar Stefan Schake Committed by Sean Paul

drm_hwcomposer: Add pass/fail CI step for clang format-diff

Signed-off-by: Stefan Schake's avatarStefan Schake <stschake@gmail.com>
parent 4fc1b539
Pipeline #187 passed with stage
in 35 seconds
image: ubuntu:16.04
before_script:
- apt-get --quiet update --yes >/dev/null
- apt-get --quiet install --yes clang-format-3.5 git >/dev/null
stages:
- style
clang-format:
stage: style
script:
- git diff -U --no-color master...HEAD | clang-format-diff-3.5 -p 1 -style=file > format-fixup.patch
- if [ -s format-fixup.patch ]; then cat format-fixup.patch && exit 1; fi
artifacts:
when: on_failure
paths:
- format-fixup.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment