summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini11
1 files changed, 7 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 23165f1..df5324a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -27,10 +27,12 @@ commands = {posargs}
[testenv:docs]
basepython = python3
whitelist_externals = rm
-deps = -r{toxinidir}/doc/requirements.txt
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
+ -r{toxinidir}/doc/requirements.txt
commands =
- rm -fr doc/build
- sphinx-build -W -b html doc/source doc/build/html
+ rm -fr doc/build
+ sphinx-build -W -b html doc/source doc/build/html
[testenv:cover]
basepython = python3
@@ -48,7 +50,8 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py
[testenv:releasenotes]
basepython = python3
-deps = -r{toxinidir}/doc/requirements.txt
+deps =
+ {[testenv:docs]deps}
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]