Skip to content

Commit

Permalink
Merge pull request #48 from JoshRosen/coverage
Browse files Browse the repository at this point in the history
Use codecov.io for code coverage reports in Travis
  • Loading branch information
ogrisel committed Jan 7, 2016
2 parents 7f1ff09 + 5643511 commit 926dd3f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = True
source = cloudpickle

[report]
exclude_lines =
pragma: no cover
def __repr__
if __name__ == .__main__.:
ignore_errors = True
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pip-delete-this-directory.txt
htmlcov/
.tox/
.coverage
.coverage.*
.coverage/.*
.cache
nosetests.xml
coverage.xml
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ install:
- pip install .
- pip install -r dev-requirements.txt
script:
- PYTHONPATH='.:tests' py.test
- PYTHONPATH='.:tests' py.test --cov-config .coveragerc --cov=cloudpickle
after_success:
- codecov
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/cloudpipe/cloudpickle.svg?branch=master
)](https://travis-ci.org/cloudpipe/cloudpickle)
[![codecov.io](https://codecov.io/github/cloudpipe/cloudpickle/coverage.svg?branch=master)](https://codecov.io/github/cloudpipe/cloudpickle?branch=master)

`cloudpickle` makes it possible to serialize Python constructs not supported
by the default `pickle` module from the Python standard library.
Expand Down
2 changes: 2 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
pytest
pytest-cov
mock
# Code coverage uploader for Travis:
codecov

0 comments on commit 926dd3f

Please sign in to comment.