ci: Bring back yamllint and shellcheck
These have been disabled for a while, but shouldn't have been. Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30978>
This commit is contained in:
@@ -214,11 +214,7 @@ debian-testing-msan:
|
||||
script: |
|
||||
section_start lava-pytest "lava-pytest"
|
||||
.gitlab-ci/lava/lava-pytest.sh
|
||||
section_switch shellcheck "shellcheck"
|
||||
.gitlab-ci/run-shellcheck.sh
|
||||
section_switch yamllint "yamllint"
|
||||
.gitlab-ci/run-yamllint.sh
|
||||
section_end yamllint
|
||||
section_end lava-pytest
|
||||
.gitlab-ci/meson/build.sh
|
||||
.gitlab-ci/prepare-artifacts.sh
|
||||
timeout: 15m
|
||||
|
@@ -57,6 +57,12 @@ function section_start {
|
||||
[ "$state_x" -eq 0 ] || set -x
|
||||
}
|
||||
|
||||
function uncollapsed_section_start {
|
||||
x_off 2>/dev/null
|
||||
build_section_start "" $*
|
||||
[ "$state_x" -eq 0 ] || set -x
|
||||
}
|
||||
|
||||
function build_section_end {
|
||||
echo -e "\e[0Ksection_end:$(date +%s):$1\r\e[0K"
|
||||
CURRENT_SECTION=""
|
||||
|
@@ -71,13 +71,19 @@ python-test:
|
||||
- changes: *bin_ci_files
|
||||
when: manual
|
||||
|
||||
toml-lint:
|
||||
yaml-toml-shell-test:
|
||||
extends:
|
||||
- python-test
|
||||
- .no-auto-retry # this job can't be flaky
|
||||
before_script:
|
||||
script:
|
||||
- echo "If your change looks right but this script rejects it, contact @eric (GitLab) / eric_engestrom (IRC)."
|
||||
- uncollapsed_section_start tomllint "tomllint"
|
||||
- python3 bin/toml_lint.py
|
||||
- uncollapsed_section_switch yamllint "yamllint"
|
||||
- .gitlab-ci/run-yamllint.sh
|
||||
- uncollapsed_section_switch shellcheck "shellcheck"
|
||||
- .gitlab-ci/run-shellcheck.sh
|
||||
- section_end
|
||||
rules:
|
||||
- !reference [.disable-farm-mr-rules, rules]
|
||||
- !reference [.never-post-merge-rules, rules]
|
||||
|
Reference in New Issue
Block a user