-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tox.ini and configure TravisCI + Coveralls.
The versions are pinned for Zope 2.13, to get a baseline of working tests. (I could not yet figure out why the tests fail.)
- Loading branch information
Michael Howitz
committed
Feb 28, 2018
1 parent
1bf0486
commit 6e5e6b8
Showing
5 changed files
with
65 additions
and
2 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 = Products.CMFUid | ||
|
||
[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
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,18 @@ | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.7 | ||
install: | ||
- pip install zope.testrunner | ||
- pip install coveralls coverage | ||
- pip install -U -e . | ||
script: | ||
- coverage run -m zope.testrunner --path=src --all -v | ||
after_success: | ||
- coveralls | ||
notifications: | ||
email: false | ||
cache: | ||
pip: true | ||
directories: | ||
- eggs/ |
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,28 @@ | ||
[tox] | ||
envlist = | ||
py27, | ||
coverage-report, | ||
|
||
[testenv] | ||
usedevelop = True | ||
commands = | ||
coverage run {envbindir}/zope-testrunner --path=Products --all {posargs:-vc} | ||
deps = | ||
. | ||
zope.testrunner | ||
coverage | ||
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 -i | ||
coverage xml -i | ||
coverage report -i |