2013-06-18 12:44:27 -07:00
|
|
|
[tox]
|
2013-09-30 10:39:23 -04:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2014-01-06 10:17:59 -08:00
|
|
|
envlist = cover,
|
2014-09-08 17:14:57 -07:00
|
|
|
docs,
|
2014-01-06 10:17:59 -08:00
|
|
|
pep8,
|
|
|
|
py26,
|
2014-01-06 18:19:39 -08:00
|
|
|
py26-sa7-mysql,
|
2014-01-06 10:17:59 -08:00
|
|
|
py27,
|
2014-01-06 18:19:39 -08:00
|
|
|
py27-sa8-mysql,
|
2014-01-06 10:17:59 -08:00
|
|
|
py33,
|
2014-09-12 00:05:34 -07:00
|
|
|
py34,
|
2014-02-17 16:41:07 +04:00
|
|
|
pylint,
|
2013-06-18 12:44:27 -07:00
|
|
|
|
|
|
|
[testenv]
|
2014-01-12 08:01:50 -08:00
|
|
|
usedevelop = True
|
2013-09-30 10:39:23 -04:00
|
|
|
install_command = pip install {opts} {packages}
|
2013-06-18 12:44:27 -07:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2014-08-15 12:18:26 -07:00
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
2014-01-12 08:01:50 -08:00
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
|
2014-09-08 17:14:57 -07:00
|
|
|
[testenv:docs]
|
|
|
|
basepython = python2.7
|
2014-09-27 14:34:08 -07:00
|
|
|
deps = {[testenv:py27]deps}
|
2014-09-08 17:14:57 -07:00
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
doc8 doc/source
|
|
|
|
|
2014-01-12 08:01:50 -08:00
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8 {posargs}
|
2013-11-16 02:44:14 -08:00
|
|
|
|
2014-01-06 10:17:59 -08:00
|
|
|
[testenv:pylint]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2014-08-15 12:18:26 -07:00
|
|
|
deps = -r{toxinidir}/requirements-py2.txt
|
2014-01-06 10:17:59 -08:00
|
|
|
pylint==0.26.0
|
2014-02-17 14:41:37 +02:00
|
|
|
commands = pylint --rcfile=pylintrc taskflow
|
2013-11-16 02:44:14 -08:00
|
|
|
|
2014-01-06 10:17:59 -08:00
|
|
|
[testenv:cover]
|
2014-01-21 13:33:21 +04:00
|
|
|
basepython = python2.7
|
2014-02-04 11:51:02 +04:00
|
|
|
deps = {[testenv:py27]deps}
|
2014-01-12 08:01:50 -08:00
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
2013-06-18 12:44:27 -07:00
|
|
|
|
|
|
|
[testenv:venv]
|
2014-09-27 14:34:08 -07:00
|
|
|
basepython = python2.7
|
|
|
|
deps = {[testenv:py27]deps}
|
2013-06-18 12:44:27 -07:00
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[flake8]
|
2014-09-03 18:38:02 -07:00
|
|
|
# H904 Wrap long lines in parentheses instead of a backslash
|
2014-07-17 09:05:16 +02:00
|
|
|
ignore = H904
|
2013-06-18 12:44:27 -07:00
|
|
|
builtins = _
|
2013-10-05 21:39:57 +00:00
|
|
|
exclude = .venv,.tox,dist,doc,./taskflow/openstack/common,*egg,.git,build,tools
|
2014-01-06 10:17:59 -08:00
|
|
|
|
2014-09-09 18:04:40 -07:00
|
|
|
[hacking]
|
2014-10-04 13:51:51 -07:00
|
|
|
import_exceptions = six.moves
|
2014-09-09 18:04:40 -07:00
|
|
|
taskflow.test.mock
|
|
|
|
unittest.mock
|
|
|
|
|
2014-09-03 18:38:02 -07:00
|
|
|
# NOTE(imelnikov): pyXY envs are considered to be default, so they must have
|
|
|
|
# richest set of test requirements
|
2014-01-23 16:22:22 +04:00
|
|
|
[testenv:py26]
|
2014-09-09 10:40:38 -07:00
|
|
|
basepython = python2.6
|
2014-09-03 18:38:02 -07:00
|
|
|
deps = {[testenv]deps}
|
|
|
|
-r{toxinidir}/requirements-py2.txt
|
|
|
|
MySQL-python
|
2014-09-03 18:17:14 -07:00
|
|
|
eventlet>=0.15.1
|
2014-09-09 10:40:38 -07:00
|
|
|
SQLAlchemy>=0.7.8,<=0.7.99
|
2014-01-23 16:22:22 +04:00
|
|
|
|
|
|
|
[testenv:py27]
|
2014-09-09 10:40:38 -07:00
|
|
|
deps = {[testenv]deps}
|
|
|
|
-r{toxinidir}/requirements-py2.txt
|
|
|
|
MySQL-python
|
2014-09-03 18:17:14 -07:00
|
|
|
eventlet>=0.15.1
|
2014-09-09 10:40:38 -07:00
|
|
|
SQLAlchemy>=0.7.8,<=0.9.99
|
|
|
|
doc8
|
2014-03-13 14:46:29 +04:00
|
|
|
commands =
|
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
sphinx-build -b doctest doc/source doc/build
|
2014-06-03 15:12:11 -07:00
|
|
|
doc8 doc/source
|
2014-01-23 16:22:22 +04:00
|
|
|
|
|
|
|
[testenv:py33]
|
2014-02-14 15:02:06 +04:00
|
|
|
deps = {[testenv]deps}
|
2014-08-15 12:18:26 -07:00
|
|
|
-r{toxinidir}/requirements-py3.txt
|
2014-03-26 14:35:22 +04:00
|
|
|
SQLAlchemy>=0.7.8,<=0.9.99
|
2014-01-23 16:22:22 +04:00
|
|
|
|
2014-09-12 00:05:34 -07:00
|
|
|
[testenv:py34]
|
|
|
|
deps = {[testenv]deps}
|
|
|
|
-r{toxinidir}/requirements-py3.txt
|
|
|
|
SQLAlchemy>=0.7.8,<=0.9.99
|
|
|
|
|
2014-01-06 18:19:39 -08:00
|
|
|
[testenv:py26-sa7-mysql]
|
2014-09-09 10:40:38 -07:00
|
|
|
basepython = python2.6
|
2014-01-06 10:17:59 -08:00
|
|
|
deps = {[testenv]deps}
|
2014-08-15 12:18:26 -07:00
|
|
|
-r{toxinidir}/requirements-py2.txt
|
2014-03-26 14:35:22 +04:00
|
|
|
SQLAlchemy>=0.7.8,<=0.7.99
|
2014-01-06 18:19:39 -08:00
|
|
|
MySQL-python
|
|
|
|
|
|
|
|
[testenv:py27-sa8-mysql]
|
2014-09-09 10:40:38 -07:00
|
|
|
basepython = python2.7
|
2014-01-06 10:17:59 -08:00
|
|
|
deps = {[testenv]deps}
|
2014-08-15 12:18:26 -07:00
|
|
|
-r{toxinidir}/requirements-py2.txt
|
2014-01-21 13:26:30 +04:00
|
|
|
SQLAlchemy>=0.8,<=0.8.99
|
2014-01-06 18:19:39 -08:00
|
|
|
MySQL-python
|