
testr uses anydbm, which defaults to a different type under python 2.7 and 3.3. The default under 2.7 is no longer available under 3.3, so without this change running "tox" results in an error from testr about loading its database. With this change, the 3.3 tests run first and then 2.7 can read the database created. Change-Id: I1a51d228c06af0ea7d3579fcec53d35922292e2d
26 lines
487 B
INI
26 lines
487 B
INI
[tox]
|
|
distribute = False
|
|
envlist = py33,py26,py27,pep8
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python setup.py testr --coverage
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .tox,dist,doc,*.egg,build
|
|
builtins = _
|