mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-27 04:43:08 -04:00
retain diff output if clang-format changes something
It's major PITA trying to guess what exactly clang-format has changed, so how CI stores patch file with changes which can be applied locally if needed.
This commit is contained in:
parent
f465fe8103
commit
ca4393fc9f
1 changed files with 6 additions and 0 deletions
|
|
@ -446,7 +446,13 @@ clang-format:
|
|||
needs: []
|
||||
script:
|
||||
- if [ -r .clang-format ]; then "${CLANG_FORMAT}" -i -style=file $(git ls-files '*.c' '*.h'); fi
|
||||
- git diff > clang-format.patch
|
||||
- if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
|
||||
artifacts:
|
||||
paths:
|
||||
- clang-format.patch
|
||||
expire_in: "1 week"
|
||||
when: on_failure
|
||||
|
||||
coccinelle:
|
||||
<<: *precheck_job
|
||||
|
|
|
|||
Loading…
Reference in a new issue