diff options
author | caoyuan <cao.yuan@99cloud.net> | 2019-12-22 23:50:45 +0800 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2020-03-11 14:55:49 +0000 |
commit | 8433aba4d6b5925fa8fb223d51a816ff541f1f2f (patch) | |
tree | cce2f61bd852aa7a75cded259f28621d9658bf8d | |
parent | 60819c4c0c0bffc48d825f5cc6311f1ac2155b2f (diff) | |
download | oslo-utils-8433aba4d6b5925fa8fb223d51a816ff541f1f2f.tar.gz |
tox: Use upper-constraints for docs jobs
Change-Id: I43225fc4ed3ba471ba7097f1e317bc6ffa777a46
-rw-r--r-- | tox.ini | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -22,10 +22,12 @@ commands = {posargs} [testenv:docs] whitelist_externals = rm -deps = -r{toxinidir}/doc/requirements.txt +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/doc/requirements.txt commands = - rm -fr doc/build - sphinx-build -W --keep-going -b html doc/source doc/build/html + rm -fr doc/build + sphinx-build -W --keep-going -b html doc/source doc/build/html [testenv:cover] commands = python setup.py test --coverage --coverage-package-name=oslo_utils --testr-args='{posargs}' @@ -41,7 +43,8 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py [testenv:releasenotes] whitelist_externals = rm -deps = -r{toxinidir}/doc/requirements.txt +deps = + {[testenv:docs]deps} commands = rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html |