Verify JSON files in the CI

Change-Id: I88380fe647864e9a7108d5dd76bdf501f289b229
This commit is contained in:
Dmitry Tantsur 2020-03-19 11:49:47 +01:00
parent 3abffb4fd7
commit 393406bbef
1 changed files with 3 additions and 0 deletions

View File

@ -14,9 +14,12 @@ deps = -r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
[testenv:linters]
whitelist_externals = bash
commands =
# Check the *.rst files
doc8 README.rst guidelines
# Check the JSON files
bash -c 'for f in guidelines/*.json; do echo Checking "$f"; python -m json.tool "$f" /dev/null || exit 1; done'
[testenv:venv]
commands = {posargs}