From 443df4ba3dbb582a7ec670ddf23d1b868d2958b1 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 8 Jun 2018 10:09:31 -0400 Subject: [PATCH] Switch to tox-linters for zuulv3 We get tox-linters job for free from zuul-jobs, so when we move to zuulv3 we can then remove ansible-lint entry. Change-Id: Ic6c46bba36de8c7162b5fe389ba0041450151755 Signed-off-by: Paul Belanger --- tox.ini | 9 +++++++++ 1 file changed, 9 insertions(+) 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"