Simplify ansible invocations in tox.ini
We have no legacy files in here, so no need to skip them. Also, sync invocations of ansible lint and ansible syntax checks. Change-Id: I003cf6a46d1dc376d83118e5e5c405aa54d33f22
This commit is contained in:
parent
c7c56a580e
commit
66ec61d67c
9
tox.ini
9
tox.ini
@ -32,12 +32,11 @@ commands =
|
||||
flake8 {posargs}
|
||||
# Ansible lint
|
||||
# [ANSIBLE0012] Commands should not change things if nothing needs doing
|
||||
bash -c "find playbooks -type d -name "legacy" -prune -o \
|
||||
-type f -regex '.*.y[a]ml' -print0 | xargs -t -n1 -0 \
|
||||
ansible-lint -xANSIBLE0012"
|
||||
bash -c "find playbooks -type f -regex '.*.ya?ml' -print0 | \
|
||||
xargs -t -n1 -0 ansible-lint -xANSIBLE0012"
|
||||
# Ansible Syntax Check
|
||||
bash -c "find playbooks -type f -regex '.*.y[a]?ml' -print0 | xargs -n1 -0 \
|
||||
ansible-playbook --syntax-check -i tests/inventory 1>/dev/null"
|
||||
bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \
|
||||
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
Loading…
x
Reference in New Issue
Block a user