Caching is enabled by default from pip version 6.0 More info: https://testrun.org/tox/latest/config.html#confval-downloadcache=path https://pip.pypa.io/en/stable/reference/pip_install/#caching Change-Id: I5a5c337da09e7fed32c30a2e193c23960cc4b7a2
28 lines
722 B
INI
28 lines
722 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}"
|
|
|
|
[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}'
|