Add yamllint to info-file-validate.sh 17/15817/2
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 4 Jun 2019 22:47:29 +0000 (15:47 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 5 Jun 2019 19:57:43 +0000 (12:57 -0700)
Run yamllint as part of info-file-validate.sh
to catch lint errors.

Change-Id: I4bf3e85b69481f7e5cdca989af1e7ec034966538
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
releasenotes/notes/info-validate-yamllint-5f83cd66b343dc1f.yaml [new file with mode: 0644]
shell/info-file-validate.sh

diff --git a/releasenotes/notes/info-validate-yamllint-5f83cd66b343dc1f.yaml b/releasenotes/notes/info-validate-yamllint-5f83cd66b343dc1f.yaml
new file mode 100644 (file)
index 0000000..934f109
--- /dev/null
@@ -0,0 +1,4 @@
+---
+fixes:
+  - |
+    Add yamllint verification to INFO.yaml files.
index c3731f4..13c27df 100755 (executable)
@@ -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