diff options
author | Elod Illes <elod.illes@est.tech> | 2022-04-28 18:46:29 +0200 |
---|---|---|
committer | Elod Illes <elod.illes@est.tech> | 2022-04-28 20:01:01 +0200 |
commit | 8f87bfb8d888895fc5fa54fdccd30a4a6f8478d9 (patch) | |
tree | aebddef8ed7e8d42611cded5f649df0a24a73449 | |
parent | 6e640b336e1d08fd0404431871d046d9b4bc0c3d (diff) | |
download | ironic-8f87bfb8d888895fc5fa54fdccd30a4a6f8478d9.tar.gz |
[stable-only][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 ironic
(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.
Change-Id: I8091b520c17f6e1af49c2342760290080776a111
-rw-r--r-- | tox.ini | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -69,8 +69,12 @@ commands = commands = oslo_debug_helper -t ironic/tests/unit {posargs} [testenv:docs] +# NOTE(elod.illes): requirements.txt is needed because otherwise +# dependencies are installed during 'develop-inst' tox phase without +# constraints which could cause failures in stable branches. deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/victoria} + -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands = sphinx-build -b html -W doc/source doc/build/html |