Use lf-env for info-file-validate 00/63400/3
authorAric Gardner <agardner@linuxfoundation.org>
Thu, 12 Mar 2020 20:26:27 +0000 (16:26 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Mon, 16 Mar 2020 17:56:47 +0000 (13:56 -0400)
Job was failing due to using python2
use lf-env to manage the environment.

ISSUE-ID: IT-19236
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I388ce7d8471e62efdae8c6131b4924cd89bfcc53

releasenotes/notes/info-validate-yamllint-17f6f2224312719d.yaml [new file with mode: 0644]
shell/info-file-validate.sh

diff --git a/releasenotes/notes/info-validate-yamllint-17f6f2224312719d.yaml b/releasenotes/notes/info-validate-yamllint-17f6f2224312719d.yaml
new file mode 100644 (file)
index 0000000..cd8ed16
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Switch info-file-validate.sh to use lf-activate-venv
+    moves job from python2 to python3
index 4b80672..8a4bc6b 100755 (executable)
@@ -12,10 +12,10 @@ echo '--> info-file-validate.sh'
 set -e -o pipefail
 PROJECT="${PROJECT:-None}"
 
-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 yamllint yq
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+lf-activate-venv zipp==1.1.0 PyYAML jsonschema rfc3987 yamllint yq
+pip freeze
 
 # Download info-schema.yaml and yaml-verfy-schema.py
 wget -q https://raw.githubusercontent.com/lfit/releng-global-jjb/master/schema/info-schema.yaml \