Fix #49, tox can be used by user
- Allow user to use tox - Docker is required !
This commit is contained in:
parent
846952810a
commit
d160d93130
8
.coveragerc
Normal file
8
.coveragerc
Normal file
@ -0,0 +1,8 @@
|
||||
[run]
|
||||
branch = True
|
||||
source = redfish
|
||||
redfish-client
|
||||
omit = redfish/tests/*,redfish-client/tests/*
|
||||
|
||||
[report]
|
||||
#ignore-errors = True
|
@ -7,3 +7,4 @@ coverage>=3.6
|
||||
mock>=1.0.1
|
||||
docker-py>=1.1.0
|
||||
path.py>=5.2
|
||||
testrepository>=0.0.20
|
||||
|
16
tox.ini
16
tox.ini
@ -1,6 +1,6 @@
|
||||
[tox]
|
||||
minversion = 1.6
|
||||
envlist = py33,py34,py26,py27,pypy,pep8
|
||||
envlist = py34,py27,docs
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
@ -12,26 +12,20 @@ setenv = VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
bash -c "TESTS_DIR=./redfish/tests python setup.py testr --slowest --testr-args='{posargs}'"
|
||||
py.test redfish-client
|
||||
# bash -c "TESTS_DIR=./redfish/tests python setup.py testr --slowest --testr-args='{posargs}'"
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||
#[testenv:cover]
|
||||
#commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||
|
||||
[testenv:docs]
|
||||
commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:debug]
|
||||
commands = oslo_debug_helper {posargs}
|
||||
|
||||
[flake8]
|
||||
# E123, E125 skipped as they are invalid PEP-8.
|
||||
|
||||
show-source = True
|
||||
ignore = E123,E125
|
||||
builtins = _
|
||||
|
Loading…
Reference in New Issue
Block a user