Fix #49, tox can be used by user

- Allow user to use tox
- Docker is required !
This commit is contained in:
Uggla 2016-04-03 18:03:41 +02:00
parent 846952810a
commit d160d93130
3 changed files with 14 additions and 11 deletions

8
.coveragerc Normal file
View File

@ -0,0 +1,8 @@
[run]
branch = True
source = redfish
redfish-client
omit = redfish/tests/*,redfish-client/tests/*
[report]
#ignore-errors = True

View File

@ -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
View File

@ -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 = _