Check all playbooks simultaneously

Change-Id: I04aa1e843cbd08a97abeb03dc55add7219358ab3
This commit is contained in:
James E. Blair 2017-09-26 14:17:48 -07:00
parent e4412c8703
commit 1f1ef0aba8

View File

@ -33,7 +33,7 @@ commands =
bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -not -path './legacy/*' -print0 | xargs -t -n1 -0 \
ansible-lint -x ANSIBLE0012"
# Ansible Syntax Check
bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -P $(nproc) -n1 -0 \
bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -0 \
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory > /dev/null"
[testenv:venv]