summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElod Illes <elod.illes@est.tech>2022-04-28 17:17:47 +0200
committerElod Illes <elod.illes@est.tech>2022-04-28 20:25:06 +0200
commitbc9e62098914dd03a891734d1ab73999c03db0b7 (patch)
treea02e74d03f2f2868469317e6b4adbb4c4a6b735b
parente0b030a1d2b7c63157fd2c621c1830f0867c53f8 (diff)
downloadnova-bc9e62098914dd03a891734d1ab73999c03db0b7.tar.gz
[CI] Install dependencies for docs target
When tox 'docs' target is called, first it installs the dependencies (listed in 'deps') in 'installdeps' phase, then it installs nova (with its requirements) in 'develop-inst' phase. In the latter case 'deps' is not used so that the constraints defined in 'deps' are not used. This could lead to failures on stable branches when new packages are released that break the build. To avoid this, the simplest solution is to pre-install requirements, i.e. add requirements.txt to 'docs' tox target. Conflicts: tox.ini NOTE(elod.illes): conflict is due to branch specific upper constraints file link. Change-Id: I4471d4488d336d5af0c23028724c4ce79d6a2031 (cherry picked from commit 494e8d7db6f8a3d1a952f657acab353787f57e04) (cherry picked from commit 1ac0d6984a43cddbb5a2f1a2f7bc115fd83517c9) (cherry picked from commit 64cc0848be9bf92d79e6fa7b424668d21321d593) (cherry picked from commit f66a570e946d980162a1313aa5a7e2ce5856a128) (cherry picked from commit bc92f05a6d6647e709a23a9d78b49f916874ef85)
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 9936fe7081..89a57af6f5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -171,6 +171,7 @@ description =
# to install (test-)requirements.txt for docs.
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
+ -r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build/html doc/build/doctrees