summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorricolin <rico.lin@easystack.cn>2017-12-19 15:36:06 +0800
committerZane Bitter <zbitter@redhat.com>2018-03-23 10:45:18 -0400
commitf41ad78cd49788bc8589b849a888aeb9bb916997 (patch)
treeb214832d53d7b65efb136681ceda13e40fb28977 /tox.ini
parent79242e2e4f7bf86cfeb1f3318147da6525f6a7e8 (diff)
downloadpython-heatclient-f41ad78cd49788bc8589b849a888aeb9bb916997.tar.gz
Follow the new PTI for document build
For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html Refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-November/124815.html Change-Id: Ibb35b13fe121fa2489ef31f51e1a662fbd01cc8b Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 7 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 5f8d8b5..c725045 100644
--- a/tox.ini
+++ b/tox.ini
@@ -46,8 +46,10 @@ commands =
coverage report
[testenv:docs]
-commands=
- python setup.py build_sphinx
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+ -r{toxinidir}/doc/requirements.txt
+commands = sphinx-build -W -b html doc/source doc/build/html
[flake8]
show-source = True
@@ -58,4 +60,7 @@ max-complexity=20
import_exceptions = heatclient._i18n
[testenv:releasenotes]
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+ -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html