From 317c9015768b7b58ca75dec98c31b25d21521adc Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Tue, 4 Jun 2019 15:47:29 -0700 Subject: [PATCH] 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 --- releasenotes/notes/info-validate-yamllint-5f83cd66b343dc1f.yaml | 4 ++++ shell/info-file-validate.sh | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/info-validate-yamllint-5f83cd66b343dc1f.yaml 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 -- 2.16.6