Fix tox linters for zuul

Fix bashate and yamllint to only run if files are provided

Story: 2003364
Task: 24419

Change-Id: If78c2c11e6db353dfee4759d6db1d7526225b1f8
Signed-off-by: Lachlan Plant <lachlan.plant@windriver.com>
This commit is contained in:
Lachlan Plant 2018-08-23 11:47:12 -05:00
parent 6ebbbf4a8c
commit cd9eaa3be0
1 changed files with 2 additions and 2 deletions

View File

@ -21,12 +21,12 @@ commands =
-not -name \*~ \
-not -name \*.md \
-name \*.sh \
-print0 | xargs -0 bashate -v"
-print0 | xargs --no-run-if-empty -0 bashate -v"
bash -c "find {toxinidir} \
\( -name middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/test-tools/yaml/* -prune \) \
-o \( -name .tox -prune \) \
-o -type f -name '*.yaml' \
-print0 | xargs -0 yamllint"
-print0 | xargs --no-run-if-empty -0 yamllint"
[testenv:pep8]
usedevelop = False