From: Ryota Mibu Date: Wed, 4 Jan 2017 05:02:38 +0000 (+0000) Subject: Merge "Add YAMLLint for static check" X-Git-Tag: danube.1.0~497 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=b03a3bca08d7f7d11d84561968dadf744abf264c;hp=d16036fdd1a6335af617c1520c989fc43db6278c;p=releng.git Merge "Add YAMLLint for static check" --- 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