Skip to content

Commit

Permalink
Add coverage checks and coveralls integration (#64)
Browse files Browse the repository at this point in the history
* Add coverage checks  and coveralls integration
* Avoid problem with zc.recipe.egg
* Add coverage config.
  • Loading branch information
Michael Howitz committed Sep 6, 2017
1 parent 10f8936 commit 6a3c502
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
source = z3c.form

[report]
precision = 2
exclude_lines =
pragma: no cover
if __name__ == '__main__':
raise NotImplementedError
self.fail
raise AssertionError
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
sudo: false
cache:
directories:
- .tox
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
install:
- travis_retry pip install tox
- pip install -U pip setuptools
- pip install -U coverage coveralls zope.testrunner
- pip install -U -e .[test]
script:
- tox -e py
- coverage run -m zope.testrunner --test-path=src
after_success:
- coveralls
notifications:
email: false
cache: pip

0 comments on commit 6a3c502

Please sign in to comment.