Add tox.ini
This commit is contained in:
parent
b6b6207797
commit
7be96d5f82
|
@ -1,2 +1,4 @@
|
|||
# python-dracclient
|
||||
python-dracclient
|
||||
=================
|
||||
|
||||
Library for managing machines with Dell iDRAC cards.
|
|
@ -0,0 +1,5 @@
|
|||
# The order of packages is significant, because pip processes them in the order
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
|
||||
pywsman>=2.3
|
|
@ -0,0 +1,8 @@
|
|||
# The order of packages is significant, because pip processes them in the order
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
|
||||
coverage>=3.6
|
||||
doc8
|
||||
hacking>=0.10.0,<0.11
|
||||
mock>=1.2
|
|
@ -0,0 +1,22 @@
|
|||
[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:pep8]
|
||||
basepython = python2.7
|
||||
commands =
|
||||
flake8 dracclient
|
||||
doc8 README.rst
|
||||
|
||||
[flake8]
|
||||
max-complexity=15
|
||||
show-source = True
|
Loading…
Reference in New Issue