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:
Andreas Jaeger 2019-05-12 20:19:41 +02:00
parent 734695ffab
commit e42e0856b5
2 changed files with 13 additions and 1 deletions

7
.zuul.yaml Normal file
View File

@ -0,0 +1,7 @@
- project:
check:
jobs:
- tox-linters
gate:
jobs:
- tox-linters

View File

@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = ansible-lint
envlist = linters
skipsdist = True
[testenv]
@ -12,5 +12,10 @@ 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}