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:
parent
2c3444a066
commit
523272a3a6
2
tox.ini
2
tox.ini
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user