Skip to content

Commit

Permalink
Merge pull request #20 from ncoghlan/covrage
Browse files Browse the repository at this point in the history
Add codecov coverage to CI
  • Loading branch information
palaviv committed Jun 2, 2018
2 parents 1b22341 + cb001a5 commit a93bb8f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
branch = True
include = walkdir.py

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ install:
- pip install tox

script: tox -e $TESTENV

after_success:
- bash <(curl -s https://codecov.io/bash)
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ skip_missing_interpreters = True
[testenv]

deps = unittest2
codecov

commands = {envpython} test_walkdir.py
commands =
- coverage run test_walkdir.py
- coverage xml -i

0 comments on commit a93bb8f

Please sign in to comment.