097a3790a8
The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Change-Id: Ib7870977e5aa66d1eb2e41d698ed058ebb65b4c1
55 lines
1.2 KiB
INI
55 lines
1.2 KiB
INI
[tox]
|
|
minversion = 3.1.1
|
|
envlist = py36,py37,pypy,pep8
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
OS_STDOUT_CAPTURE=1
|
|
OS_STDERR_CAPTURE=1
|
|
OS_TEST_TIMEOUT=60
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = stestr --test-path ./tempest_stress/tests run {posargs}
|
|
|
|
[testenv:stress]
|
|
envdir = .tox/tempest_stress
|
|
sitepackages = False
|
|
commands =
|
|
run-tempest-stress {posargs}
|
|
|
|
[testenv:pep8]
|
|
sitepackages = False
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHON=coverage run --source tempest_stress --parallel-mode
|
|
commands =
|
|
stestr --test-path ./tempest_stress/tests run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125,W503,W504
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|