
Prepare deprecation of ansible-lint job and use linters job instead. Create a new tox environment for this. Add job to run linters job. Needed-By: https://review.opendev.org/658682 Change-Id: Ib2c7bdc66077442993d017cf97a4a8116799d130
22 lines
420 B
INI
22 lines
420 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 =
|
|
{[testenv:ansible-lint]commands}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|