Add basic XML checking

Change-Id: Ieb4e55d529a50667b87942a119ceae4689dd3ac1
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
Dean Troyer 2018-07-05 15:56:06 -05:00
parent 5d18720514
commit 4bbc31070a
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}