From: Eric Engestrom Date: Fri, 26 May 2023 13:49:38 +0000 (+0100) Subject: ci: show diff when clang-format check fails X-Git-Tag: upstream/23.3.3~8045 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=480204aeed3fc430b5aaa2469db33265fc18c2af;p=platform%2Fupstream%2Fmesa.git ci: show diff when clang-format check fails Signed-off-by: Eric Engestrom Reviewed-by: Alyssa Rosenzweig Part-of: --- diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index 9832fa0..90e888d 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: