Module: Mesa Branch: main Commit: 2b8a14e0765b69b11f13eb1ee887ac1739fb3fd7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b8a14e0765b69b11f13eb1ee887ac1739fb3fd7
Author: David Heidelberg <[email protected]> Date: Sat Sep 3 21:06:09 2022 +0200 ci: check traces.yml files with yamllint Signed-off-by: David Heidelberg <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18329> --- .gitlab-ci/build/gitlab-ci.yml | 1 + .gitlab-ci/container/debian/x86_build.sh | 1 + .gitlab-ci/run-yamllint.sh | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/.gitlab-ci/build/gitlab-ci.yml b/.gitlab-ci/build/gitlab-ci.yml index cf701594f3e..75f7500cad3 100644 --- a/.gitlab-ci/build/gitlab-ci.yml +++ b/.gitlab-ci/build/gitlab-ci.yml @@ -186,6 +186,7 @@ debian-build-testing: script: - .gitlab-ci/lava/lava-pytest.sh - .gitlab-ci/run-shellcheck.sh + - .gitlab-ci/run-yamllint.sh - .gitlab-ci/meson/build.sh - .gitlab-ci/run-shader-db.sh diff --git a/.gitlab-ci/container/debian/x86_build.sh b/.gitlab-ci/container/debian/x86_build.sh index 466991ed42f..3bae3ee1f38 100644 --- a/.gitlab-ci/container/debian/x86_build.sh +++ b/.gitlab-ci/container/debian/x86_build.sh @@ -51,6 +51,7 @@ apt-get install -y --no-remove \ shellcheck \ strace \ time \ + yamllint \ zstd diff --git a/.gitlab-ci/run-yamllint.sh b/.gitlab-ci/run-yamllint.sh new file mode 100755 index 00000000000..a5c690d71a5 --- /dev/null +++ b/.gitlab-ci/run-yamllint.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -e + +# Run yamllint against all traces files. +find . -name '*traces*yml' -exec yamllint -d "{rules: {line-length: {max: 150}}}" {} \;
