91adad90b3
Change-Id: Ia3e04db81af6b16aad499d0175b3e86066fb6138
41 lines
1.0 KiB
INI
41 lines
1.0 KiB
INI
[tox]
|
|
envlist = py35,py34,py27,pep8
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
EVENTLET_NO_GREENDNS=yes
|
|
PYTHONHASHSEED=0
|
|
commands =
|
|
python setup.py testr --slowest --testr-args="{posargs}"
|
|
sitepackages = False
|
|
|
|
[testenv:cover]
|
|
basepython = python3
|
|
commands = python setup.py testr --coverage --testr-args="{posargs}"
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = true
|
|
builtins = _
|
|
exclude = .venv,.git,.tmp,.tox,dist,doc,*lib/python*,*egg,tools
|
|
|
|
[testenv:lower-constraints]
|
|
basepython = python3
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|