To solve the problem of "db type could not be determined" on py34 we have to run first the py34 env to, then, run py27. This patch puts py34 first on the tox.ini list of envs to avoid this problem to happen. Change-Id: I94baade12db4b445e2f7879b1674c5d8e29fcccf Closes-bug: #1489059
25 lines
513 B
INI
25 lines
513 B
INI
[tox]
|
|
envlist = py34,pep8,py27
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
setenv = PYTHONDONTWRITEBYTECODE=1
|
|
commands =
|
|
coverage run --branch --source dracclient --omit "dracclient/tests*" -m unittest discover dracclient.tests
|
|
coverage report -m --fail-under 90
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:pep8]
|
|
basepython = python2.7
|
|
commands =
|
|
flake8 dracclient
|
|
doc8 README.rst
|
|
|
|
[flake8]
|
|
max-complexity=15
|
|
show-source = True |