[tox] envlist = py27,py27-pure,py34,py35,py36,py36-pure,pypy,coverage,docs [testenv] deps = .[test,docs] commands = zope-testrunner --test-path=src sphinx-build -b doctest -d {envdir}/doctrees docs {envdir}/doctest [testenv:coverage] basepython = python2.7 commands = # The installed version messes up nose's test discovery / coverage reporting # So, we uninstall that from the environment, and then install the editable # version, before running nosetests. pip uninstall -y zope.proxy pip install -e . coverage run -m zope.testrunner --test-path=src deps = .[test] coverage [testenv:docs] basepython = python2.7 commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest deps = .[test,docs] [testenv:py27-pure] basepython = python2.7 setenv = PURE_PYTHON = 1 PIP_CACHE_DIR = {envdir}/.cache [testenv:py36-pure] basepython = python3.6 setenv = PURE_PYTHON = 1 PIP_CACHE_DIR = {envdir}/.cache