From: Jessica Wagantall Date: Tue, 4 Jun 2019 22:47:29 +0000 (-0700) Subject: Add yamllint to info-file-validate.sh X-Git-Tag: v0.38.3~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=317c9015768b7b58ca75dec98c31b25d21521adc;p=releng%2Fglobal-jjb.git Add yamllint to info-file-validate.sh Run yamllint as part of info-file-validate.sh to catch lint errors. Change-Id: I4bf3e85b69481f7e5cdca989af1e7ec034966538 Signed-off-by: Jessica Wagantall --- diff --git a/releasenotes/notes/info-validate-yamllint-5f83cd66b343dc1f.yaml b/releasenotes/notes/info-validate-yamllint-5f83cd66b343dc1f.yaml new file mode 100644 index 00000000..934f1095 --- /dev/null +++ b/releasenotes/notes/info-validate-yamllint-5f83cd66b343dc1f.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Add yamllint verification to INFO.yaml files. diff --git a/shell/info-file-validate.sh b/shell/info-file-validate.sh index c3731f4d..13c27dfb 100755 --- a/shell/info-file-validate.sh +++ b/shell/info-file-validate.sh @@ -15,11 +15,13 @@ set -x # Enable trace virtualenv --quiet "/tmp/v/info" # shellcheck source=/tmp/v/info/bin/activate disable=SC1091 source "/tmp/v/info/bin/activate" -pip install PyYAML jsonschema rfc3987 +pip install PyYAML jsonschema rfc3987 yamllint # Cloning global-jjb to get access to needed scripts git clone https://github.com/lfit/releng-global-jjb.git +yamllint INFO.yaml + python releng-global-jjb/yaml-verify-schema.py \ -s releng-global-jjb/info-schema \ -y INFO.yaml