Skip to content

Commit

Permalink
Enable codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
rgieseke committed Sep 13, 2017
1 parent 66b29ba commit 2b99d6c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .coveragerc
@@ -0,0 +1,14 @@
[run]
branch = True
source = pymagicc

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
pymagicc/_version.py
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -43,3 +43,4 @@ venv/
ENV/

.cache
.coverage
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -11,9 +11,13 @@ python:
- "3.4"
- "3.5"
- "3.6"
before_install:
- pip install pytest pytest-cov codecov
install:
- pip install .
script:
- python setup.py test
- pytest --cov
after_success:
- codecov
notifications:
slack: climate-models:LuGwA2dGrgZRL1O7AssggqyP
1 change: 1 addition & 0 deletions dev-requirements.txt
@@ -1,3 +1,4 @@
pytest
pytest-cov
notebook
matplotlib

0 comments on commit 2b99d6c

Please sign in to comment.