Merge "Add basic XML checking"

This commit is contained in:
Zuul 2018-07-09 21:32:32 +00:00 committed by Gerrit Code Review
commit 67421902a4
1 changed files with 6 additions and 3 deletions

View File

@ -15,10 +15,13 @@ deps = -r{toxinidir}/test-requirements.txt
[testenv:linters]
whitelist_externals = bash
commands =
bash -c "find {toxinidir} \
\( -name .tox -prune \) \
-o -type f -name '*.yaml' \
bash -c "find {toxinidir} \
\( -name .tox -prune \) \
-o -type f -name '*.yaml' \
-print0 | xargs -0 yamllint"
bash -c "find {toxinidir} \
-type f -name '*.xml' \
-print0 | xargs -0 xmllint --noout"
[testenv:venv]
commands = {posargs}