add whereto test as optional step in doc build
If a project has whereto installed in its venv tox environment, use it to run tests for the redirects in the .htaccess file that is part of its documentation. Change-Id: I9cfcc5f81487708e58022b83e24974fef653779f Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
9d6d809f87
commit
8fb051dcfc
@ -19,6 +19,15 @@ export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
|
||||
tox -e$venv -- python setup.py build_sphinx
|
||||
result=$?
|
||||
|
||||
# If the build has not already failed and whereto is installed then
|
||||
# test the redirects defined in the project.
|
||||
if [ $result -eq 0 ]; then
|
||||
if [ -e .tox/$venv/bin/whereto ]; then
|
||||
tox -e $venv -- whereto doc/source/_extra/.htaccess doc/test/redirect-tests.txt
|
||||
result=$?
|
||||
fi
|
||||
fi
|
||||
|
||||
[ -e .tox/$venv/bin/pbr ] && freezecmd=pbr || freezecmd=pip
|
||||
|
||||
echo "Begin pbr freeze output from test virtualenv:"
|
||||
|
Loading…
Reference in New Issue
Block a user