Skip to content

Commit

Permalink
fix build and coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Mar 28, 2018
1 parent 797876d commit d760686
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[run]
branch = True
source = isogeo_pysdk

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
samples/*
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ script:
- pycodestyle isogeo_pysdk/checker.py --ignore="E265,E501" --statistics --show-source
- pycodestyle isogeo_pysdk/utils.py --ignore="E265,E501" --statistics --show-source
# coverage
- coverage run tests/
- coverage run -m unittest discover -s tests/

# coverage reporting
after_success:
Expand Down

0 comments on commit d760686

Please sign in to comment.