diff options
author | Ryota Mibu <r-mibu@cq.jp.nec.com> | 2017-01-04 05:02:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-04 05:02:38 +0000 |
commit | b03a3bca08d7f7d11d84561968dadf744abf264c (patch) | |
tree | b1b6d1e18f0345a7e0402b794c548bdda99f20b7 | |
parent | d16036fdd1a6335af617c1520c989fc43db6278c (diff) | |
parent | 51017785538b0447b78e6f6ed5f912c0c6b76eae (diff) |
Merge "Add YAMLLint for static check"
-rw-r--r-- | jjb/global/releng-macros.yml | 5 |
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 |