Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Commit 3ce96cf

Browse files
committed
Fix codecov, fixes #97
- Update pytest and pytest-cov to latest version - Actually call coverage report when tests are run - Pin coverage to 3.7.1 because of bug with py32
1 parent ae2cc23 commit 3ce96cf

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ script:
2222

2323
after_success:
2424
- pip install codecov
25-
- codecov
25+
- codecov -e TOX_ENV

requirements/requirements-testing.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
cov-core==1.15.0
2+
coverage==3.7.1
13
flake8==2.4.1
24
mccabe==0.3.1
35
pep8==1.5.7
46
pluggy==0.3.1
57
py==1.4.30
68
pyflakes==0.8.1
7-
pytest==2.8.0
8-
pytest-cov==1.8.1
9+
pytest==2.8.2
10+
pytest-cov==2.2.0
911
tox==2.1.1
1012
virtualenv==13.1.2

run_tests.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ def flake8_main(args):
4646
except ValueError:
4747
pass
4848
else:
49-
pytest_args = ['--cov', 'algorithms'] + pytest_args
49+
pytest_args = [
50+
'--cov-report',
51+
'xml',
52+
'--cov',
53+
'algorithms'] + pytest_args
5054

5155
if run_tests:
5256
exit_on_failure(pytest.main(pytest_args))

0 commit comments

Comments
 (0)