mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 02:46:16 +01:00
CI: Run all style/lint checks before failing
Even if we get warnings from the first lint check, we probably want to see the warnings from later lint checks too, to reduce the number of round-trips. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
a7702505e0
commit
e87db7dbf2
@ -128,8 +128,10 @@ style-check-advisory:
|
|||||||
stage: style-check
|
stage: style-check
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- .gitlab-ci/run-style-check-diff.sh
|
- failed=
|
||||||
- .gitlab-ci/run-check-todos.sh
|
- .gitlab-ci/run-style-check-diff.sh || failed=1
|
||||||
|
- .gitlab-ci/run-check-todos.sh || failed=1
|
||||||
|
- test -z "$failed"
|
||||||
|
|
||||||
sh-and-py-check:
|
sh-and-py-check:
|
||||||
extends:
|
extends:
|
||||||
@ -139,9 +141,11 @@ sh-and-py-check:
|
|||||||
stage: style-check
|
stage: style-check
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
script:
|
script:
|
||||||
- tests/shellcheck.sh
|
- failed=
|
||||||
- tests/black.sh
|
- tests/shellcheck.sh || failed=1
|
||||||
- tests/flake8.sh
|
- tests/black.sh || failed=1
|
||||||
|
- tests/flake8.sh || failed=1
|
||||||
|
- test -z "$failed"
|
||||||
variables:
|
variables:
|
||||||
LINT_WARNINGS_ARE_ERRORS: '1'
|
LINT_WARNINGS_ARE_ERRORS: '1'
|
||||||
only:
|
only:
|
||||||
|
Loading…
Reference in New Issue
Block a user