2014-06-09 10:22:10 -04:00
|
|
|
# noted to use py34 you need virtualenv >= 1.11.4
|
2011-12-30 14:54:19 -08:00
|
|
|
[tox]
|
2014-06-09 10:22:10 -04:00
|
|
|
envlist = py26,py27,py33,py34,pypy,pep8
|
2013-12-09 14:54:09 +00:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2011-12-30 14:54:19 -08:00
|
|
|
|
|
|
|
[testenv]
|
2013-12-09 14:54:09 +00:00
|
|
|
usedevelop = True
|
2015-01-27 12:35:40 -08:00
|
|
|
# tox is silly... these need to be separated by a newline....
|
|
|
|
whitelist_externals = find
|
2015-02-23 08:20:44 -05:00
|
|
|
bash
|
2013-12-09 14:54:09 +00:00
|
|
|
install_command = pip install -U {opts} {packages}
|
2012-05-16 10:40:33 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-12-24 19:58:11 -06:00
|
|
|
|
2013-05-18 07:17:04 -07:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-09-12 06:53:02 -04:00
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
2015-02-23 08:20:44 -05:00
|
|
|
bash tools/pretty_tox.sh '{posargs}'
|
|
|
|
# there is also secret magic in pretty_tox.sh which lets you run in a fail only
|
|
|
|
# mode. To do this define the TRACE_FAILONLY environmental variable.
|
2011-12-30 14:54:19 -08:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2014-06-15 23:42:31 -07:00
|
|
|
commands = flake8 {posargs}
|
2011-12-30 14:54:19 -08:00
|
|
|
|
2012-05-16 10:40:33 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2015-01-27 13:11:09 -08:00
|
|
|
[testenv:functional]
|
|
|
|
setenv =
|
|
|
|
OS_TEST_PATH = ./novaclient/tests/functional
|
|
|
|
|
2012-05-16 10:40:33 -04:00
|
|
|
[testenv:cover]
|
2012-12-24 19:58:11 -06:00
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
2012-05-16 10:40:33 -04:00
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2013-05-18 07:13:38 -07:00
|
|
|
|
|
|
|
[flake8]
|
2014-08-05 21:35:12 +02:00
|
|
|
# Following checks should be enabled in the future.
|
|
|
|
#
|
|
|
|
# H404 multi line docstring should start without a leading new line
|
|
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
|
|
#
|
|
|
|
# Following checks are ignored on purpose.
|
|
|
|
#
|
2014-10-20 10:21:20 -07:00
|
|
|
# Additional checks are also ignored on purpose: F811, F821
|
2015-01-11 01:30:19 +00:00
|
|
|
ignore = E124,F811,F821,H404,H405
|
2013-05-18 07:13:38 -07:00
|
|
|
show-source = True
|
2014-08-05 21:35:12 +02:00
|
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,doc/source/conf.py
|
|
|
|
|
|
|
|
[hacking]
|
2014-10-16 01:19:48 +03:00
|
|
|
import_exceptions = novaclient.i18n
|