summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini46
1 files changed, 11 insertions, 35 deletions
diff --git a/tox.ini b/tox.ini
index b39c8a5..a42fa09 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,48 +3,31 @@ envlist =
# Jython support pending 2.7 support, due 2012-07-15 or so. See:
# http://fwierzbicki.blogspot.com/2012/03/adconion-to-fund-jython-27.html
# py27,jython,pypy,coverage
- py27,py33,py34,py35,pypy,pypy3,coverage,docs
+ py27,py34,py35,py36,pypy,pypy3,coverage
[testenv]
commands =
- python setup.py test -q
+ zope-testrunner --test-path=src []
+ sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
deps =
- zope.configuration
- zope.copy
- zope.interface
- zope.proxy
- zope.schema
+ .[test,docs]
[testenv:jython]
commands =
jython setup.py test -q
-deps =
- zope.configuration
- zope.copy
- zope.interface
- zope.proxy
- zope.schema
[testenv:coverage]
+usedevelop = true
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.location
- pip install -e .
- nosetests --with-xunit --with-xcoverage
+ coverage run -m zope.testrunner --test-path=src
+ coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
+ coverage report
deps =
- zope.configuration
- zope.copy
- zope.interface
- zope.proxy
- zope.schema
- zope.component
- nose
+ {[testenv]deps}
coverage
- nosexcover
+
[testenv:docs]
basepython =
@@ -53,11 +36,4 @@ 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 =
- zope.configuration
- zope.copy
- zope.interface
- zope.proxy
- zope.schema
- zope.component
- Sphinx
- repoze.sphinx.autointerface
+ .[docs]