Skip to content

Commit 6c4b8a6

Browse files
committed
Config to setup coveralls
Use coveralls will report code coverage on the PR. This will only measure coverage using unit tests for the time being.
1 parent 4c68e87 commit 6c4b8a6

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.coveragerc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
[run]
22
branch = True
33
source = cwltool
4+
5+
[report]
6+
exclude_lines =
7+
if self.debug:
8+
pragma: no cover
9+
raise NotImplementedError
10+
if __name__ == .__main__.:
11+
ignore_errors = True
12+
omit =
13+
tests/*

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ python:
99
os:
1010
- linux
1111
install:
12-
- pip install tox-travis
12+
- pip install tox-travis coveralls
1313
script: tox
1414
branches:
1515
only:
1616
- master
1717
notifications:
18-
email: false
18+
email: false
19+
20+
after_success:
21+
- coveralls

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ skip_missing_interpreters = True
1818
3.6 = py36
1919

2020
[testenv]
21+
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
2122
deps =
2223
-rrequirements.txt
2324
py{27,33,34,35,36}-lint: flake8
2425

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

2931
whitelist_externals =

0 commit comments

Comments
 (0)