ci/lint: also print a diff for rust format issues

Signed-off-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24257>
This commit is contained in:
Eric Engestrom 2023-07-12 15:43:44 +01:00 committed by Marge Bot
parent 5ae6d5e436
commit b4bcb1a567

View file

@ -25,14 +25,16 @@
- .use-debian/x86_64_build
variables:
GIT_STRATEGY: fetch
script:
- git diff --color=always --exit-code # Fails if there are diffs
rustfmt:
extends:
- .formatting-check
- .lint-rustfmt-rules
script:
before_script:
- shopt -s globstar
- rustfmt --check --verbose src/**/lib.rs
- rustfmt --verbose src/**/lib.rs
clang-format:
extends:
@ -40,13 +42,12 @@ clang-format:
- .lint-clang-format-rules
variables:
LLVM_VERSION: 15
script:
before_script:
- shopt -s globstar
# We need a meson build dir, but its config doesn't actually matter, so
# let's just use the default.
- meson setup build
- ninja -C build clang-format
- git diff --color=always --exit-code # Fails if there are diffs
.test-gl:
extends: