taskflow/tox.ini
Joshua Harlow 2e0eac09c4 Remove customized pyX.Y tox requirements
Instead of having custom pyX.Y that test a specific set of
requirements and similar with other tox envs, just enable
more test-requirements directly, in a later change we will
use environment markers to denote the differences.

Also tweaks the jobboard example to bypass/hack a needed eventlet
fix into it so that it actually runs without breaking/never finishing.
A TODO note has been left to eventually (someday?) remove this hack
when it is no longer needed.

Part of fix for bug 1445827

Change-Id: I0fb669f0bdfbe4fe81d89234173f2c3ac4d06de6
2015-05-29 15:47:23 -07:00

72 lines
1.5 KiB
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = cover,
docs,
pep8,
py26,
py27,
py34,
pylint,
update-states
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:docs]
basepython = python2.7
deps = {[testenv:py27]deps}
commands = python setup.py build_sphinx
doc8 doc/source
[testenv:update-states]
basepython = python2.7
deps = {[testenv:py27]deps}
pydot2
commands = {toxinidir}/tools/update_states.sh
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
commands = flake8 {posargs}
[testenv:pylint]
setenv = VIRTUAL_ENV={envdir}
deps = {[testenv]deps}
pylint==0.26.0
commands = pylint --rcfile=pylintrc taskflow
[testenv:cover]
basepython = python2.7
deps = {[testenv:py27]deps}
coverage>=3.6
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:venv]
basepython = python2.7
deps = {[testenv:py27]deps}
commands = {posargs}
[flake8]
builtins = _
exclude = .venv,.tox,dist,doc,./taskflow/openstack/common,*egg,.git,build,tools
[hacking]
import_exceptions = six.moves
taskflow.test.mock
unittest.mock
[testenv:py27]
deps = {[testenv]deps}
doc8
commands =
python setup.py testr --slowest --testr-args='{posargs}'
sphinx-build -b doctest doc/source doc/build
doc8 doc/source