ci: show diff when clang-format check fails

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23258>
This commit is contained in:
Eric Engestrom
2023-05-26 14:49:38 +01:00
committed by Marge Bot
parent 648b5f3070
commit 480204aeed

View File

@@ -42,9 +42,10 @@ clang-format:
LLVM_VERSION: 15
script:
- shopt -s globstar
- clang-format-${LLVM_VERSION:?} --Werror --dry-run
- clang-format-${LLVM_VERSION:?} --Werror -i
src/**/asahi/**/*.{h,c,cpp}
src/**/panfrost/**/*.{h,c,cpp}
- git diff --exit-code # Fails if there are diffs
.test-gl:
extends: