diff options
| author | confi-surya <singh.surya64mnnit@gmail.com> | 2018-04-06 18:28:51 +0900 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2018-05-21 10:51:59 +0100 |
| commit | dbf754655fa2e5e17ec2fa6f85a03d88da0ccb6e (patch) | |
| tree | 88fb60c82f1a211c0352d8ae3450e780d99f1fbd /tox.ini | |
| parent | 5c1f0226d341adb0ccdee33a7aa9ba7d026f90dd (diff) | |
| download | kolla-ansible-dbf754655fa2e5e17ec2fa6f85a03d88da0ccb6e.tar.gz kolla-ansible-dbf754655fa2e5e17ec2fa6f85a03d88da0ccb6e.zip | |
Following the new PTI for document build
For compliance with the Project Testing Interface [1]
as described in [2]
[1]
https://governance.openstack.org/tc/reference/project-testing-interface.html
[2]
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
doc8 command is dropped from docs tox envs.
So this affect nothing and run in PEP8.
Related-Bug: #1765348
Depends-On: Icc7fe3a8f9716281de88825e9d5b2fd84de3d00a
Change-Id: Idf9a16111479ccc64004eac9508da575822a3df5
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 32 |
1 files changed, 27 insertions, 5 deletions
@@ -7,8 +7,9 @@ envlist = py35,py27,pep8,pypy usedevelop=True whitelist_externals = find rm -install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} -deps = -r{toxinidir}/requirements.txt +install_command = pip install {opts} {packages} +deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_TEST_TIMEOUT @@ -30,12 +31,15 @@ setenv = VIRTUAL_ENV={envdir} commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:pep8] +# sphinx needs to be installed to make doc8 work properly deps = {[testenv]deps} + -r{toxinidir}/doc/requirements.txt yamllint commands = {toxinidir}/tools/run-bashate.sh flake8 {posargs} + doc8 doc python {toxinidir}/tools/validate-all-file.py bandit -r ansible kolla_ansible tests tools yamllint . @@ -44,16 +48,30 @@ commands = commands = bandit -r ansible kolla_ansible tests tools [testenv:venv] +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/doc/requirements.txt 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/build - doc8 doc - python setup.py build_sphinx + sphinx-build -W -b html doc/source doc/build/html [testenv:deploy-guide] -commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees -b html deploy-guide/source deploy-guide/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 deploy-guide/build + sphinx-build -a -E -W -d deploy-guide/build/doctrees -b html deploy-guide/source deploy-guide/build/html [testenv:setupenv] commands = @@ -61,6 +79,10 @@ commands = {toxinidir}/tools/dump_info.sh [testenv:releasenotes] +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 |
