
According to an Openstack summit session [1], stestr is a maintained project to which all Openstack projects should migrate. Let's switch to stestr as other projects have already moved to it. [1] https://etherpad.opendev.org/p/YVR-python-pti Change-Id: Ie2169026d93ca85337db429c171ff1f82c2fa0d5
48 lines
1.2 KiB
INI
48 lines
1.2 KiB
INI
[tox]
|
|
envlist = py36,py37,pep8
|
|
minversion = 3.1.1
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
EVENTLET_NO_GREENDNS=yes
|
|
PYTHONHASHSEED=0
|
|
commands =
|
|
stestr run --slowest {posargs}
|
|
sitepackages = False
|
|
|
|
[testenv:cover]
|
|
basepython = python3
|
|
setenv =
|
|
PYTHON=coverage run --source blazarnova --parallel-mode
|
|
commands =
|
|
stestr run '{posargs}'
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = true
|
|
builtins = _
|
|
exclude = .venv,.git,.tmp,.tox,dist,doc,*lib/python*,*egg,tools
|
|
|
|
[testenv:lower-constraints]
|
|
install_command = {toxinidir}/tools/tox_install.sh {toxinidir}/lower-constraints.txt {opts} {packages}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|