2012-11-01 03:43:02 +00:00
|
|
|
[tox]
|
2013-09-05 12:58:16 +00:00
|
|
|
minversion = 1.6
|
2014-07-11 05:19:32 +00:00
|
|
|
envlist = py26,py27,py33,pypy,pep8
|
2013-09-05 12:58:16 +00:00
|
|
|
skipsdist = True
|
2012-11-01 03:43:02 +00:00
|
|
|
|
|
|
|
[testenv]
|
2013-09-05 12:58:16 +00:00
|
|
|
usedevelop = True
|
|
|
|
# Customize pip command, add -U to force updates.
|
|
|
|
install_command = pip install -U {opts} {packages}
|
2013-02-25 14:47:39 +00:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2014-08-01 15:15:59 +00:00
|
|
|
ZAQAR_TESTS_DIR={toxinidir}/tests
|
|
|
|
ZAQAR_TESTS_CONFIGS_DIR={toxinidir}/tests/etc/
|
2014-01-09 13:14:17 +00:00
|
|
|
|
2013-06-14 12:16:39 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-01-09 13:14:17 +00:00
|
|
|
#commands = nosetests {posargs}
|
|
|
|
commands = python setup.py testr --slowest --testr-args='--concurrency 1 {posargs}'
|
2012-11-01 03:43:02 +00:00
|
|
|
|
2014-08-05 15:33:53 +00:00
|
|
|
[testenv:py27]
|
|
|
|
setenv = ZAQAR_TEST_MONGODB=1
|
|
|
|
|
2014-05-21 14:35:46 +00:00
|
|
|
[testenv:py33]
|
|
|
|
deps = -r{toxinidir}/requirements-py3.txt
|
|
|
|
-r{toxinidir}/test-requirements-py3.txt
|
|
|
|
|
2013-02-25 14:47:39 +00:00
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2012-11-01 03:43:02 +00:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-05-06 13:51:56 +00:00
|
|
|
commands = flake8
|
2013-02-25 14:47:39 +00:00
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
setenv = NOSE_WITH_COVERAGE=1
|
2014-01-09 13:14:17 +00:00
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage \
|
|
|
|
--testr-args='^(?!.*test.*coverage).*$'
|
2013-02-25 14:47:39 +00:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2013-05-06 13:51:56 +00:00
|
|
|
|
2014-04-02 23:21:37 +00:00
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2013-05-06 13:51:56 +00:00
|
|
|
[flake8]
|
2013-07-09 22:14:36 +00:00
|
|
|
exclude = .venv*,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*.egg,.update-venv
|
2013-12-04 23:45:54 +00:00
|
|
|
|
|
|
|
[hacking]
|
2014-08-01 15:15:59 +00:00
|
|
|
import_exceptions = zaqar.openstack.common.gettextutils._,zaqar.i18n._
|
2014-01-23 18:08:12 +00:00
|
|
|
|