68 lines
1.9 KiB
INI
68 lines
1.9 KiB
INI
[tox]
|
|
minversion = 3.18.0
|
|
envlist = py35,py27,pypy,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
|
|
etenv = VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
OS_STDOUT_CAPTURE=1
|
|
OS_STDERR_CAPTURE=1
|
|
OS_TEST_TIMEOUT=60
|
|
OS_TEST_PATH=./trio2o/tests/
|
|
usedevelop = True
|
|
install_command=python -m pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
# By default stestr will set concurrency
|
|
# to ncpu, to specify something else use
|
|
# the concurrency=<n> option.
|
|
# call ie: 'tox -epy27 -- --concurrency=4'
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
whitelist_externals = rm
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
python setup.py testr --coverage --testr-args='{posargs}'
|
|
coverage report
|
|
|
|
[testenv:genconfig]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = oslo-config-generator --config-file=etc/api-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/nova_apigw-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/cinder_apigw-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/xjob-cfg-gen.conf
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
ignore=F401,F632,F821,F841,W291,W503,W504,W605,E123,E117,E265,E266,E305,E402,E501,504,506,E722,E741,
|
|
H101,H104,H201,H216,H238,H30
|
|
|
|
[hacking]
|
|
import_exceptions = trio2o.common.i18n
|