build our docs with the lower-constraints

We aren't unit testing the sphinxext module yet so run sphinx using
the lower-constraints list as an integration test to let us verify
that things work with those settings.

Change-Id: I7cd770a2267dfcda3e7765e2708534eb705dedbd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-09-04 15:00:02 -04:00
parent ba9eab17ad
commit 6dec42836f

View File

@ -35,6 +35,12 @@ basepython = python3
commands = python setup.py test --coverage --testr-args='{posargs}' commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:docs] [testenv:docs]
# NOTE(dhellmann): Build our own documentation using the
# lower-constraints list as a hacky way to test the sphinx extension
# module, since we don't have separate unit tests for it.
deps =
-c{toxinidir}/lower-constraints.txt
{[testenv]deps}
basepython = python3 basepython = python3
commands = sphinx-build -a -W -E -b html doc/source doc/build/html commands = sphinx-build -a -W -E -b html doc/source doc/build/html