Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add coverage analysis and model .travis.yml alike the one of zope.app.schema.
- Loading branch information
Michael Howitz
committed
May 11, 2017
1 parent
f699a57
commit 30c2f68
Showing
6 changed files
with
62 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[run] | ||
branch = True | ||
source = zope.authentication | ||
|
||
[report] | ||
precision = 2 |
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,4 +1,7 @@ | ||
.tox/ | ||
*.pyc | ||
*.egg-info | ||
*.pyc | ||
.coverage | ||
.tox/ | ||
coverage.xml | ||
docs/_build | ||
htmlcov/ |
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,18 +1,23 @@ | ||
language: python | ||
sudo: false | ||
matrix: | ||
include: | ||
- python: 3.5 | ||
env: TOXENV=py35 | ||
env: | ||
- TOXENV=py27 | ||
- TOXENV=py33 | ||
- TOXENV=py34 | ||
- TOXENV=pypy | ||
- TOXENV=pypy3 | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy-5.4.1 | ||
- pypy3 | ||
install: | ||
- pip install tox | ||
- pip install -U pip setuptools | ||
- pip install -U coveralls coverage | ||
- pip install -U -e ".[test]" | ||
script: | ||
- tox | ||
- coverage run -m zope.testrunner --test-path=src --auto-color | ||
after_success: | ||
- coveralls | ||
notifications: | ||
email: false | ||
email: false | ||
cache: pip | ||
before_cache: | ||
- rm -f $HOME/.cache/pip/log/debug.log |
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,27 +1,46 @@ | ||
[tox] | ||
envlist = | ||
py27,py33,py34,py35,pypy,pypy3,docs | ||
py27, | ||
py33, | ||
py34, | ||
py35, | ||
py36, | ||
pypy, | ||
pypy3, | ||
docs, | ||
coverage-report, | ||
|
||
[testenv] | ||
usedevelop = true | ||
commands = | ||
python setup.py -q test -q | ||
# without explicit deps, setup.py test will download a bunch of eggs into $PWD | ||
# (and it seems I can't use zope.dottedname[testing] here, so forget DRY) | ||
coverage run {envbindir}/zope-testrunner --test-path=src {posargs:-vc} | ||
deps = | ||
zope.browser | ||
zope.component | ||
zope.i18nmessageid | ||
zope.interface | ||
zope.schema | ||
zope.security | ||
zope.testing | ||
.[test] | ||
zope.testrunner | ||
coverage | ||
setenv = | ||
COVERAGE_FILE=.coverage.{envname} | ||
|
||
[testenv:docs] | ||
basepython = python2.7 | ||
commands = | ||
sphinx-build -ab html -d docs/_build/doctrees docs/ docs/_build/html | ||
sphinx-build -ab doctest -d docs/_build/doctrees docs/ docs/_build/doctest | ||
coverage run {envbindir}/sphinx-build -ab doctest -d docs/_build/doctrees docs/ docs/_build/doctest | ||
deps = | ||
{[testenv]deps} | ||
Sphinx | ||
setenv = | ||
COVERAGE_FILE=.coverage.{envname} | ||
|
||
[testenv:coverage-report] | ||
basepython = python2.7 | ||
deps = coverage | ||
setenv = | ||
COVERAGE_FILE=.coverage | ||
skip_install = true | ||
commands = | ||
coverage erase | ||
coverage combine | ||
coverage html | ||
coverage xml | ||
coverage report --show-missing |