ansible-role-puppet/tox.ini
Andreas Jaeger 7a9fd23801 Fix ansible-lint
The current tests never fail, change ansible-lint invocation so that it
fails - and fix problems.

Change-Id: I6aeb1e3a4c28af71a858ec83c21f4dbb5e7ef97f
2019-05-13 18:30:12 +02:00

22 lines
411 B
INI

[tox]
minversion = 1.6
envlist = linters
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:ansible-lint]
whitelist_externals = bash
commands =
bash -c "find . -type f -regex '.*.y[a]?ml' -execdir ansible-lint \{\} \;"
[testenv:linters]
whitelist_externals = bash
commands =
ansible-lint {toxinidir}
[testenv:venv]
commands = {posargs}