summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorNguyen Hai <nguyentrihai93@gmail.com>2017-12-29 13:53:24 +0800
committerNguyen Hai <nguyentrihai93@gmail.com>2018-04-12 03:34:35 +0000
commita8003eced789d225a47f1cfdbd03e92fd39546f8 (patch)
tree8f21596d39e479bbad053f6dfb8c71ddc1681cdc /tox.ini
parent314a29f6a6e64f69fd07fd5a0fdcf7aeb5574c1b (diff)
downloadpython-glanceclient-a8003eced789d225a47f1cfdbd03e92fd39546f8.tar.gz
Follow the new PTI for document build
- Follow new PTI for docs build - Add sphinxcontrib.apidoc to replace pbr autodoc REF: https://governance.openstack.org/tc/reference/project-testing-interface.html http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com> Change-Id: Id16a5eaa57bc0d96332849abfb62898e6766ef86
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 6 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 56da7d8..dd82c7c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -42,11 +42,14 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
coverage report
[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:releasenotes]
-commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
+deps = -r{toxinidir}/doc/requirements.txt
+commands =
+ sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
ignore = F403,F812,F821