Make linting use of find portable

Current implementation failed to lint on BSD-like systems due
to the use of GNU specific find feature.

Change-Id: I0dbf635eb5b2e9b37dd0062ca165a5b51d090543
This commit is contained in:
Sorin Sbarnea 2020-04-21 13:25:27 +01:00
parent 2c3444a066
commit 523272a3a6

View File

@ -41,7 +41,7 @@ commands =
flake8 {posargs}
bash -c "find playbooks -type f -regex '.*.ya?ml' ! -regex '.*vars\/.*' -print0 | \
xargs -t -n1 -0 ansible-lint"
bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \
bash -c 'find roles -maxdepth 1 -mindepth 1 -type d | \
xargs -t -n1 ansible-lint'
# Ansible Syntax Check
bash -c "find playbooks -type f -regex '.*.ya?ml' ! -regex '.*vars\/.*' -exec \