Add tox -eansible-lint support
This is our first of many tests that we'll be gating on. Change-Id: I79bee90bc989463a115b4e58c8c5226be6fe4f6f Depends-On: Ia0d691baca3d9ef7386b2748bc6042a546e6d5f6 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
8a242bf781
commit
65242d65ab
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.tox/
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
ansible
|
1
test-requirements.txt
Normal file
1
test-requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
ansible-lint
|
16
tox.ini
Normal file
16
tox.ini
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[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}
|
Loading…
Reference in New Issue
Block a user