From 480204aeed3fc430b5aaa2469db33265fc18c2af Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 26 May 2023 14:49:38 +0100 Subject: [PATCH] ci: show diff when clang-format check fails Signed-off-by: Eric Engestrom Reviewed-by: Alyssa Rosenzweig Part-of: --- .gitlab-ci/test/gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index 9832fa0ce71..90e888dbf27 100644 --- a/.gitlab-ci/test/gitlab-ci.yml +++ b/.gitlab-ci/test/gitlab-ci.yml @@ -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: