Switch to linters job
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
This commit is contained in:
parent
734695ffab
commit
e42e0856b5
7
.zuul.yaml
Normal file
7
.zuul.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
- project:
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- tox-linters
|
||||||
|
gate:
|
||||||
|
jobs:
|
||||||
|
- tox-linters
|
7
tox.ini
7
tox.ini
@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
envlist = ansible-lint
|
envlist = linters
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
@ -12,5 +12,10 @@ whitelist_externals = bash
|
|||||||
commands =
|
commands =
|
||||||
bash -c "find . -type f -regex '.*.y[a]?ml' -execdir ansible-lint \{\} \;"
|
bash -c "find . -type f -regex '.*.y[a]?ml' -execdir ansible-lint \{\} \;"
|
||||||
|
|
||||||
|
[testenv:linters]
|
||||||
|
whitelist_externals = bash
|
||||||
|
commands =
|
||||||
|
{[testenv:ansible-lint]commands}
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user