summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorjunboli <junbo85.li@gmail.com>2018-01-17 09:43:25 +0800
committerjunbo.li <junbo85.li@gmail.com>2018-01-17 09:53:00 +0000
commita60daf4f601c2b24f70d327d33c693af0aca02ec (patch)
treeec5db2ed26a56fbf282b27bf16c05362a26889bf /tox.ini
parentf72d8f835112bfed8332609b98914cf5f4ea65b1 (diff)
Follow the new PTI for document build
For compliance with the Project Testing Interface as described in [1]: [1] https://governance.openstack.org/tc/reference/project-testing-interface.html For more detials information, please refer to [2]: [2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I1fe5352e8e4a7703bd9908e7221f04110163d6fb
Notes
Notes (review): Code-Review+2: Ben Swartzlander <ben@swartzlander.org> Code-Review+2: Goutham Pacha Ravi <gouthampravi@gmail.com> Code-Review+2: zhongjun <jun.zhongjun2@gmail.com> Workflow+1: zhongjun <jun.zhongjun2@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 18 Jan 2018 08:28:40 +0000 Reviewed-on: https://review.openstack.org/530866 Project: openstack/manila Branch: refs/heads/master
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 11 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 904aef1..95d2259 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,11 +15,15 @@ commands =
15 ostestr {posargs} 15 ostestr {posargs}
16 16
17[testenv:releasenotes] 17[testenv:releasenotes]
18whitelist_externals = rm 18deps =
19 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
20 -r{toxinidir}/requirements.txt
21 -r{toxinidir}/doc/requirements.txt
19commands = 22commands =
20 rm -rf releasenotes/build 23 rm -rf releasenotes/build
21 sphinx-build -a -E -W -d releasenotes/build/doctrees \ 24 sphinx-build -a -E -W -d releasenotes/build/doctrees \
22 -b html releasenotes/source releasenotes/build/html 25 -b html releasenotes/source releasenotes/build/html
26whitelist_externals = rm
23 27
24[testenv:debug] 28[testenv:debug]
25commands = oslo_debug_helper {posargs} 29commands = oslo_debug_helper {posargs}
@@ -64,12 +68,16 @@ commands = oslopolicy-sample-generator --config-file=etc/manila/manila-policy-ge
64commands = {posargs} 68commands = {posargs}
65 69
66[testenv:docs] 70[testenv:docs]
67whitelist_externals = rm 71deps =
72 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
73 -r{toxinidir}/requirements.txt
74 -r{toxinidir}/doc/requirements.txt
68commands = 75commands =
69 rm -rf doc/build 76 rm -rf doc/build
70 python setup.py build_sphinx 77 sphinx-build -b html doc/source doc/build/html
71 # Ignore D001 since we allow lines in excess of 79 characters. 78 # Ignore D001 since we allow lines in excess of 79 characters.
72 doc8 --ignore D001 --ignore-path .tox --ignore-path doc/build --ignore-path manila.egg-info -e txt -e rst 79 doc8 --ignore D001 --ignore-path .tox --ignore-path doc/build --ignore-path manila.egg-info -e txt -e rst
80whitelist_externals = rm
73 81
74[testenv:cover] 82[testenv:cover]
75setenv = 83setenv =