diff options
author | Nguyen Hai <nguyentrihai93@gmail.com> | 2018-03-19 20:35:59 +0900 |
---|---|---|
committer | Nguyen Hai <nguyentrihai93@gmail.com> | 2018-03-20 18:36:54 +0900 |
commit | 7043c1af54ba110d0505edaac58e2f910ebf10ad (patch) | |
tree | 3888488eab4c05efbbe2ded9bd7ab37644fadbce /tox.ini | |
parent | 207ee54187844a141239512b43a4952732ddfb1f (diff) | |
download | python-saharaclient-7043c1af54ba110d0505edaac58e2f910ebf10ad.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
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
Change-Id: I616ad9f7f089873890ba508cf3e39067f046ae53
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -16,6 +16,7 @@ deps = commands = find . -type f -name "*.pyc" -delete ostestr {posargs} whitelist_externals = find + rm passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY [testenv:debug] @@ -53,14 +54,22 @@ commands = doc8 doc/source commands = {posargs} [testenv:docs] +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/requirements.txt + -r{toxinidir}/doc/requirements.txt commands = - rm -rf doc/html doc/build - python setup.py build_sphinx -whitelist_externals = - rm + rm -rf doc/build + 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 = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/requirements.txt + -r{toxinidir}/doc/requirements.txt +commands = + rm -rf releasenotes/build + sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [flake8] show-source = true |