[tox]
# Jython 2.7rc2 does work, but unfortunately has an issue running
# with Tox 1.9.2 (http://bugs.jython.org/issue2325)
#envlist = py26,py27,py33,py34,pypy,simple,jython,pypy3
envlist = py27,py33,py34,py35,pypy,simple,pypy3

[testenv]
commands =
# Run unit tests first.
    zope-testrunner -u --test-path=src --auto-color --auto-progress
# Only run functional tests if unit tests pass.
    zope-testrunner -f --test-path=src --auto-color --auto-progress
# without explicit deps, setup.py test will download a bunch of eggs into $PWD
deps =
    manuel
    zope.testing
    zope.testrunner >= 4.4.6

[testenv:simple]
# Test that 'setup.py test' works
basepython =
    python2.7
commands =
    python setup.py test -q
deps = {[testenv]deps}

[testenv:coverage]
basepython = python2.7
usedevelop = true
commands =
    coverage run --source=ZODB -m zope.testrunner --test-path=src --auto-color --auto-progress
    coverage report
deps =
    coverage
    {[testenv]deps}
