summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorRyota Mibu <r-mibu@cq.jp.nec.com>2017-01-04 05:02:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-04 05:02:38 +0000
commitb03a3bca08d7f7d11d84561968dadf744abf264c (patch)
treeb1b6d1e18f0345a7e0402b794c548bdda99f20b7 /jjb
parentd16036fdd1a6335af617c1520c989fc43db6278c (diff)
parent51017785538b0447b78e6f6ed5f912c0c6b76eae (diff)
Merge "Add YAMLLint for static check"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/global/releng-macros.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml
index 7647a35d3..5b7ef5065 100644
--- a/jjb/global/releng-macros.yml
+++ b/jjb/global/releng-macros.yml
@@ -366,6 +366,9 @@
set -o xtrace
export PATH=$PATH:/usr/local/bin/
+ # install python packages
+ pip install "yamllint==1.6.0"
+
# generate and upload lint log
echo "Running yaml code on $PROJECT ..."
@@ -375,8 +378,6 @@
# Get number of yaml violations. If none, this will be an
# empty string: ""
find . \
- -path './releng_yamllint' -prune -o \
- -path './.tox' -prune -o \
-type f -name "*.yml" -print \
-o -name "*.yaml" -print | \
xargs yamllint > yaml-violation.log || true