Skip to content

Commit

Permalink
Merge pull request #6 from gyst/master
Browse files Browse the repository at this point in the history
Fixup buildout and add coverage to tox
  • Loading branch information
janwijbrand authored Jan 12, 2018
2 parents 839292d + be97657 commit 15e7f37
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
*.pyc
__pycache__
src/*.egg-info

.coverage
.coverage.*
.installed.cfg
.tox
__pycache__
bin
coverage.xml
develop-eggs
htmlcov/
lib/
parts
pip-selfcheck.json
pyvenv.cfg
src/*.egg-info
4 changes: 2 additions & 2 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ grokcore.content =
[interpreter]
recipe = zc.recipe.egg
eggs = grokcore.content
interpreter = python
interpreter = py

[test]
recipe = zc.recipe.testrunner
eggs = grokcore.content [test]
defaults = ['--tests-pattern', '^f?tests$', '-v', '-c']
defaults = ['-v', '-c']

[releaser]
recipe = zc.recipe.egg
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# NOTE: setuptools and zc.buildout versions must be in sync with:
# ztk-versions.cfg
setuptools==38.2.4
zc.buildout==2.10.0
10 changes: 7 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
[tox]
envlist =
coverage-clean,
py27,
py34,
py35,
py36,
pypy,
pypy3
pypy3,
coverage-report

[testenv]
commands =
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
coverage run --source=grokcore.content -m zope.testrunner --test-path=src {posargs:-vc}
setenv =
COVERAGE_FILE=.coverage.{envname}
deps =
.[test]
zope.testrunner
Expand All @@ -31,4 +35,4 @@ commands =
coverage combine
coverage report
coverage html
coverage xml
coverage

0 comments on commit 15e7f37

Please sign in to comment.