From e42e0856b5a4eb91aa337a105dd4d808aa88caf9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 12 May 2019 20:19:41 +0200 Subject: [PATCH] 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 --- .zuul.yaml | 7 +++++++ tox.ini | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .zuul.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..7a78699 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,7 @@ +- project: + check: + jobs: + - tox-linters + gate: + jobs: + - tox-linters diff --git a/tox.ini b/tox.ini index 380fb70..c6ab94c 100644 --- a/tox.ini +++ b/tox.ini @@ -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}