diff --git a/tox.ini b/tox.ini index 52fa484..16ffe9d 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,15 @@ deps = -r{toxinidir}/test-requirements.txt [testenv:docs] commands = sphinx-build -W -b html doc/source doc/build/html +[testenv:linters] +whitelist_externals = + {[testenv:ansible-lint]whitelist_externals} +commands = + {[testenv:ansible-lint]commands} +setenv = + {[testenv:ansible-lint]setenv} + +# TODO(pabelanger): Replace this with linters entry point once we move to zuulv3 [testenv:ansible-lint] commands = bash -c "find roles/ -type f -regex '.*.y[a]?ml' -print | xargs -L1 ansible-lint"