Skip to content

Commit

Permalink
Switch to tox-linters for zuulv3
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pabelanger committed Jun 8, 2018
1 parent 5f175d5 commit 443df4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 443df4b

Please sign in to comment.