Check that all JSON files don't have \r\n in line

The windows edited file may contain \r\n in line, add a check for
json files for the docs job.

Change-Id: I1ca30be139651ed49eb1f7867616dda6bd080884
This commit is contained in:
liyingjun 2016-12-09 12:00:06 +08:00
parent 9f82809fc1
commit 803e69f30d

@ -91,6 +91,8 @@ commands = {posargs}
commands =
rm -rf doc/source/api doc/build api-guide/build api-ref/build
python setup.py build_sphinx
# Check that all JSON files don't have \r\n in line.
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
# Check that all included JSON files are valid JSON
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
oslo-config-generator --config-file=etc/nova/nova-config-generator.conf