Verify JSON files in the CI
Change-Id: I88380fe647864e9a7108d5dd76bdf501f289b229
This commit is contained in:
parent
3abffb4fd7
commit
393406bbef
3
tox.ini
3
tox.ini
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user