summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@huawei.com>2018-03-21 15:34:16 -0500
committerSean McGinnis <sean.mcginnis@huawei.com>2018-03-21 15:59:01 -0500
commit7d250abe0403b0bde7f61becc8f7c7f6f52ca1af (patch)
tree601be4334a9df99bea0da414e0eb3f18b234faba /tox.ini
parent8d406fe9251853f15a7da1df2d2031cca0647267 (diff)
downloadoslo-config-7d250abe0403b0bde7f61becc8f7c7f6f52ca1af.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 For more detials information, please refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I46a861f88166b3b2de0a532cc88beef1ef91ab89
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index fa3c59e..d766d8a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -28,7 +28,9 @@ commands =
commands = {posargs}
[testenv:docs]
-commands = python setup.py build_sphinx
+deps = -r{toxinidir}/doc/requirements.txt
+commands =
+ sphinx-build -W -b html doc/source doc/build/html
[testenv:bandit]
commands = bandit -r oslo_config -x tests -n5
@@ -47,6 +49,7 @@ deps = pip_missing_reqs
commands = pip-missing-reqs -d --ignore-module=oslo_config* --ignore-module=pkg_resources --ignore-file=oslo_config/tests/* --ignore-file=tests/ oslo_config
[testenv:releasenotes]
+deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[hacking]