Skip to content

Commit

Permalink
Config to setup coveralls
Browse files Browse the repository at this point in the history
Use coveralls will report code coverage on the PR.
This will only measure coverage using unit tests for the time being.
  • Loading branch information
manu-chroma committed Aug 15, 2017
1 parent 4c68e87 commit 6c4b8a6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
[run]
branch = True
source = cwltool

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ python:
os:
- linux
install:
- pip install tox-travis
- pip install tox-travis coveralls
script: tox
branches:
only:
- master
notifications:
email: false
email: false

after_success:
- coveralls
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ skip_missing_interpreters = True
3.6 = py36

[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
-rrequirements.txt
py{27,33,34,35,36}-lint: flake8

commands =
py{27,33,34,35,36}-unit: python setup.py test
py{27,33,35,36}-unit: python setup.py test
py34-unit: coverage run setup.py test
py{27,33,34,35,36}-lint: flake8 schema_salad setup.py

whitelist_externals =
Expand Down

0 comments on commit 6c4b8a6

Please sign in to comment.