ansible-role-puppet/tox.ini
Paul Belanger 5cc182408d Add tox -eansible-lint support
Start using tox to setup ansible-lint since we are dealing with python
modules. This is part of an effort to have all ansible modules use the
same testing syntax.

Change-Id: I2b38d165472606a12208ec198a9ac4dab967bc72
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-11 21:43:59 -05:00

17 lines
331 B
INI

[tox]
minversion = 1.6
envlist = ansible-lint
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:venv]
commands = {posargs}