-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Store test dependencies in setup.py * Fix author e-mail. * Fix tests by pinning some maximum versions (They will be removed when solving #6.) * Fix handling of empty responses. * Update travis config.
- Loading branch information
Michael Howitz
committed
Feb 27, 2019
1 parent
929bd78
commit dc5d49d
Showing
11 changed files
with
79 additions
and
47 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,9 @@ | ||
[run] | ||
branch = True | ||
source = z3c.etestbrowser | ||
|
||
[report] | ||
precision = 2 | ||
|
||
[html] | ||
directory = 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,11 +1,12 @@ | ||
.installed.cfg | ||
*.egg-info | ||
*.pyc | ||
.Python | ||
include/ | ||
lib/ | ||
.coverage | ||
.installed.cfg | ||
.tox/ | ||
__pycache__ | ||
bin/ | ||
develop-eggs/ | ||
eggs/ | ||
*.egg-info | ||
*.pyc | ||
__pycache__ | ||
.tox/ | ||
include/ | ||
lib/ |
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,11 +1,24 @@ | ||
# Configuration script to Travis-CI | ||
sudo: false | ||
# Configuration script for Travis-CI | ||
language: python | ||
python: | ||
- 2.7 | ||
- 2.7 | ||
matrix: | ||
include: | ||
- python: 2.7 | ||
name: "2.7" | ||
- python: 2.7 | ||
name: "Flake8" | ||
install: pip install -U flake8 | ||
script: flake8 --doctests src setup.py | ||
after_success: | ||
install: | ||
- pip install tox-travis | ||
- pip install -U pip setuptools zope.testrunner | ||
- 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 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[flake8] | ||
doctests = true |
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,22 +1,23 @@ | ||
[tox] | ||
envlist = | ||
py27,flake8 | ||
flake8, | ||
py27, | ||
coverage, | ||
|
||
[testenv] | ||
deps = | ||
zope.testrunner | ||
zope.app.testing | ||
zope.app.wsgi >= 4.0dev | ||
zope.app.zcmlfiles | ||
zope.app.server | ||
zope.testbrowser[test] | ||
# install zope.app.pagetemplate explicitly to avoid | ||
# https://github.com/pypa/pip/issues/854 | ||
extras = test | ||
commands = | ||
pip install zope.app.pagetemplate | ||
zope-testrunner --test-path=src | ||
|
||
[testenv:coverage] | ||
basepython = python2.7 | ||
commands = | ||
coverage run -m zope.testrunner --test-path=src {posargs:--auto-color -vv} | ||
coverage report --fail-under=92 | ||
deps = coverage | ||
|
||
[testenv:flake8] | ||
basepython = python2 | ||
basepython = python2.7 | ||
skip_install = true | ||
deps = flake8 | ||
commands = flake8 src setup.py --doctests | ||
commands = flake8 src setup.py |