Add basic XML checking
Change-Id: Ieb4e55d529a50667b87942a119ceae4689dd3ac1 Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
parent
5d18720514
commit
4bbc31070a
9
tox.ini
9
tox.ini
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue