53c79034a6
Add oslo modules which we will need for tests implementation. Also add base class for tests, tox instruction for coverage and changes to dot files. Change-Id: Ia105f1e5e088ee91ce4b30149d4721df81d28368
31 lines
765 B
INI
31 lines
765 B
INI
[tox]
|
|
envlist = py27,pep8
|
|
|
|
[testenv]
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
DISCOVER_DIRECTORY=climateclient/tests
|
|
commands =
|
|
python -m climateclient.openstack.common.lockutils python setup.py testr --slowest --testr-args="{posargs}"
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[flake8]
|
|
show-source = true
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python -m climateclient.openstack.common.lockutils python setup.py testr --coverage --testr-args='{posargs}'
|