-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ease running the tests + add coverage tests.
- Loading branch information
Michael Howitz
committed
Feb 9, 2018
1 parent
dace981
commit ea17af2
Showing
5 changed files
with
88 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
|
||
install: | ||
- pip install six==1.10.0 # force here to avoid conflict with zc.recipe.testrunner | ||
- pip install -U setuptools==33.1.1 | ||
- pip install coveralls coverage | ||
- pip install zc.buildout | ||
- buildout bootstrap | ||
- buildout install test | ||
|
||
script: | ||
- coverage run bin/test -v1 | ||
after_success: | ||
- coverage combine | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
include *.rst | ||
include *.txt | ||
recursive-include zmi *.css | ||
recursive-include zmi *.eot | ||
recursive-include zmi *.html | ||
recursive-include zmi *.js | ||
recursive-include zmi *.json | ||
recursive-include zmi *.map | ||
recursive-include zmi *.svg | ||
recursive-include zmi *.ttf | ||
recursive-include zmi *.txt | ||
recursive-include zmi *.woff | ||
recursive-include zmi *.woff2 | ||
recursive-include zmi *.zcml |
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,34 @@ | ||
[tox] | ||
envlist = | ||
py27, | ||
py34, | ||
py35, | ||
py36, | ||
coverage-report, | ||
|
||
[testenv] | ||
commands = | ||
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} bootstrap | ||
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test | ||
coverage run {envbindir}/test {posargs:-vc1} | ||
skip_install = true | ||
deps = | ||
setuptools==33.1.1 | ||
zc.buildout | ||
coverage | ||
setenv = | ||
PIP_NO_CACHE = 1 | ||
COVERAGE_FILE=.coverage.{envname} | ||
|
||
[testenv:coverage-report] | ||
basepython = python3.6 | ||
deps = coverage | ||
setenv = | ||
COVERAGE_FILE=.coverage | ||
skip_install = true | ||
commands = | ||
coverage erase | ||
coverage combine | ||
coverage html -i | ||
coverage xml -i | ||
coverage report -i |