Merge "Run ansible-lint under pep8 envlist"

This commit is contained in:
Jenkins 2017-06-08 19:45:30 +00:00 committed by Gerrit Code Review
commit be2343576f
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,7 @@
hacking>=0.12.0,<0.13 # Apache-2.0
ansible-lint
bashate>=0.2
sphinx>=1.5.1,<1.6.0 # BSD
oslosphinx>=4.7.0 # Apache-2.0

View File

@ -21,7 +21,11 @@ commands = bindep test
commands = python setup.py build_sphinx
[testenv:pep8]
commands = flake8 {posargs}
whitelist_externals = bash
commands =
flake8 {posargs}
bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
ansible-lint"
[testenv:venv]
commands = {posargs}