summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaoyuan <cao.yuan@99cloud.net>2019-12-22 23:50:45 +0800
committerElod Illes <elod.illes@est.tech>2020-04-23 13:51:28 +0200
commit127da507884133363028bbdd22b1aa9090de652e (patch)
tree545b966ab19558e2c4eabab9fdc93420dd6a4836
parent272786fd7efc50bede4824be9da685327dc5cc64 (diff)
downloadoslo-utils-127da507884133363028bbdd22b1aa9090de652e.tar.gz
tox: Use upper-constraints for docs jobs
Note(elod.illes): upper constraint file link modified to point to Stein version of the file. Change-Id: I43225fc4ed3ba471ba7097f1e317bc6ffa777a46 (cherry picked from commit 8433aba4d6b5925fa8fb223d51a816ff541f1f2f) (cherry picked from commit c3c5aac8ff75f9bb9dc6228169a8c6936c5548e0)
-rw-r--r--tox.ini11
1 files changed, 7 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 139f659..28a8349 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/stein}
+ -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]