Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support current python versions and add coverage. (#22)
* Support current python versions and add coverage
- Loading branch information
Showing
5 changed files
with
32 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,23 @@ | ||
[tox] | ||
# PyPy3 support pending a release of a fix for | ||
# https://bitbucket.org/pypy/pypy/issue/1946) | ||
#envlist = py27,py33,py34,pypy,pypy3 | ||
envlist = py27,py33,py34,py35,pypy | ||
envlist = py27,py34,py35,py36,py37,pypy,pypy3,coverage | ||
|
||
[testenv] | ||
commands = | ||
python setup.py -q test -q | ||
# without explicit deps, setup.py test will download a bunch of eggs into $PWD | ||
zope-testrunner --test-path=src [] | ||
deps = | ||
zc.customdoctests | ||
zope.testing | ||
zope.testrunner | ||
manuel | ||
mock | ||
.[test] | ||
|
||
[testenv:coverage] | ||
usedevelop = true | ||
basepython = | ||
python2.7 | ||
python3.6 | ||
setenv = | ||
COVERAGE_HOME={toxinidir} | ||
COVERAGE_PROCESS_START={toxinidir}/.coveragerc | ||
commands = | ||
coverage run --source=zdaemon setup.py -q test | ||
coverage run -m zope.testrunner --test-path=src [] | ||
coverage combine | ||
coverage report | ||
coverage report --fail-under=83 | ||
deps = | ||
{[testenv]deps} | ||
coverage |