Merge "Add YAMLLint for static check"
authorRyota Mibu <r-mibu@cq.jp.nec.com>
Wed, 4 Jan 2017 05:02:38 +0000 (05:02 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 4 Jan 2017 05:02:38 +0000 (05:02 +0000)
jjb/global/releng-macros.yml

index 7647a35..5b7ef50 100644 (file)
             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 ..."
 
             # 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