python-dracclient/tox.ini
Imre Farkas dc85838401 Add 'venv' environment to tox.ini
Gate jobs are failing without it.

Change-Id: I8390fb0e49ea297cd687dd51d996f0fd1dd1f9fd
2015-11-05 14:54:30 +01:00

25 lines
513 B
INI

[tox]
envlist = pep8,py27,py34
[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