Merge "add whereto for testing redirect rules"
This commit is contained in:
commit
c4aedef4f8
@ -35,3 +35,6 @@ reno>=2.5.0 # Apache-2.0
|
|||||||
|
|
||||||
# placement functional tests
|
# placement functional tests
|
||||||
wsgi-intercept>=1.4.1 # MIT License
|
wsgi-intercept>=1.4.1 # MIT License
|
||||||
|
|
||||||
|
# redirect tests in docs
|
||||||
|
whereto>=0.3.0 # Apache-2.0
|
||||||
|
2
tox.ini
2
tox.ini
@ -144,6 +144,8 @@ basepython = python2.7
|
|||||||
commands =
|
commands =
|
||||||
rm -rf doc/source/api doc/build api-guide/build api-ref/build placement-api-ref/build
|
rm -rf doc/source/api doc/build api-guide/build api-ref/build placement-api-ref/build
|
||||||
python setup.py build_sphinx
|
python setup.py build_sphinx
|
||||||
|
# Test the redirects
|
||||||
|
whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
|
||||||
# Check that all JSON files don't have \r\n in line.
|
# 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'"
|
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
|
||||||
# Check that all included JSON files are valid JSON
|
# Check that all included JSON files are valid JSON
|
||||||
|
Loading…
Reference in New Issue
Block a user