2012-05-21 16:32:35 -04:00
|
|
|
[tox]
|
2013-08-03 01:54:45 +00:00
|
|
|
distribute = False
|
2017-02-08 16:57:15 +08:00
|
|
|
envlist = py35,py27,pep8
|
2016-12-03 12:47:04 +01:00
|
|
|
minversion = 2.0
|
2013-12-09 14:25:58 +00:00
|
|
|
skipsdist = True
|
2012-05-21 16:32:35 -04:00
|
|
|
|
|
|
|
[testenv]
|
2013-12-09 14:25:58 +00:00
|
|
|
usedevelop = True
|
2017-12-02 09:20:22 +01:00
|
|
|
install_command = pip install {opts} {packages}
|
2016-12-03 12:47:04 +01:00
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
2017-09-19 16:50:18 -05:00
|
|
|
OS_TEST_PATH=./cinderclient/tests/unit
|
|
|
|
OS_STDOUT_CAPTURE=1
|
|
|
|
OS_STDERR_CAPTURE=1
|
|
|
|
OS_TEST_TIMEOUT=60
|
2015-12-02 06:05:30 +00:00
|
|
|
passenv = *_proxy *_PROXY
|
2012-12-24 22:01:28 -06:00
|
|
|
|
2017-12-02 09:20:22 +01:00
|
|
|
deps =
|
|
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
|
|
-r{toxinidir}/requirements.txt
|
2013-05-18 09:18:07 -07:00
|
|
|
-r{toxinidir}/test-requirements.txt
|
2015-12-02 12:56:56 +09:00
|
|
|
commands = find . -type f -name "*.pyc" -delete
|
2018-10-09 13:45:13 +00:00
|
|
|
stestr run {posargs}
|
2018-05-28 09:05:20 +08:00
|
|
|
stestr slowest
|
2015-12-02 12:56:56 +09:00
|
|
|
whitelist_externals = find
|
2012-05-21 16:32:35 -04:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2018-06-09 20:49:05 +08:00
|
|
|
basepython = python3
|
2013-05-18 09:09:35 -07:00
|
|
|
commands = flake8
|
2012-05-21 16:32:35 -04:00
|
|
|
|
2016-04-04 16:20:43 -04:00
|
|
|
[testenv:pylint]
|
2018-06-09 20:49:05 +08:00
|
|
|
basepython = python3
|
2017-12-02 09:20:22 +01:00
|
|
|
deps =
|
|
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
|
|
-r{toxinidir}/requirements.txt
|
2018-07-23 13:55:36 -05:00
|
|
|
pylint==1.9.1
|
2016-04-04 16:20:43 -04:00
|
|
|
commands = bash tools/lintstack.sh
|
|
|
|
whitelist_externals = bash
|
|
|
|
|
2012-05-21 16:44:06 -04:00
|
|
|
[testenv:venv]
|
2018-06-09 20:49:05 +08:00
|
|
|
basepython = python3
|
2012-05-21 16:44:06 -04:00
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
2018-06-09 20:49:05 +08:00
|
|
|
basepython = python3
|
2017-09-19 16:50:18 -05:00
|
|
|
setenv =
|
|
|
|
{[testenv]setenv}
|
|
|
|
PYTHON=coverage run --source cinderclient --parallel-mode
|
2017-01-13 10:46:58 +08:00
|
|
|
commands =
|
2017-09-19 16:50:18 -05:00
|
|
|
stestr run {posargs}
|
|
|
|
coverage combine
|
|
|
|
coverage html -d cover
|
|
|
|
coverage xml -o cover/coverage.xml
|
2012-05-21 16:44:06 -04:00
|
|
|
|
2014-07-24 17:22:42 -04:00
|
|
|
[testenv:docs]
|
2018-06-09 20:49:05 +08:00
|
|
|
basepython = python3
|
2017-12-19 00:37:04 -08:00
|
|
|
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 = sphinx-build -b html doc/source doc/build/html
|
2014-07-24 17:22:42 -04:00
|
|
|
|
2015-12-03 14:17:32 -06:00
|
|
|
[testenv:releasenotes]
|
2018-06-09 20:49:05 +08:00
|
|
|
basepython = python3
|
2017-12-19 00:37:04 -08:00
|
|
|
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
|
2015-12-03 14:17:32 -06:00
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2015-04-30 16:58:46 -06:00
|
|
|
[testenv:functional]
|
2018-06-09 20:49:05 +08:00
|
|
|
basepython = python3
|
2018-10-09 13:45:13 +00:00
|
|
|
commands = stestr run {posargs}
|
2015-04-30 16:58:46 -06:00
|
|
|
setenv =
|
2016-12-03 12:47:04 +01:00
|
|
|
{[testenv]setenv}
|
2015-04-30 16:58:46 -06:00
|
|
|
OS_TEST_PATH = ./cinderclient/tests/functional
|
2018-06-19 09:01:42 +08:00
|
|
|
OS_VOLUME_API_VERSION = 3
|
2015-10-28 18:10:55 +02:00
|
|
|
# The OS_CACERT environment variable should be passed to the test
|
|
|
|
# environments to specify a CA bundle file to use in verifying a
|
|
|
|
# TLS (https) server certificate.
|
2015-11-16 21:16:52 +02:00
|
|
|
passenv = OS_*
|
2015-04-30 16:58:46 -06:00
|
|
|
|
2013-05-18 09:09:35 -07:00
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2017-08-23 14:59:08 -04:00
|
|
|
ignore = H404,H405,E122,E123,E128,E251
|
2016-02-09 17:00:30 +08:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
2018-03-22 17:44:58 -04:00
|
|
|
|
|
|
|
[testenv:lower-constraints]
|
|
|
|
basepython = python3
|
|
|
|
deps =
|
|
|
|
-c{toxinidir}/lower-constraints.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
-r{toxinidir}/requirements.txt
|