Skip to content

Commit 57eface

Browse files
committed
Run coverage analysis on Travis CI
1 parent 8aefa2c commit 57eface

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ before_script:
5353
- PYTHON=${PYTHON:-python}
5454
- which $PYTHON
5555
- $PYTHON -m pip --version
56-
- $PYTHON -m pip install --quiet tox
56+
- $PYTHON -m pip install --quiet tox coveralls
5757
- julia --color=yes -e 'VERSION >= v"0.7.0-DEV.5183" && using Pkg; Pkg.add("PyCall")'
5858
script:
5959

@@ -63,4 +63,7 @@ script:
6363
$PYTHON -m tox -e py,py27 -- -s;
6464
fi
6565

66-
- PYJULIA_TEST_REBUILD=yes $PYTHON -m tox -- -s
66+
- PYJULIA_TEST_REBUILD=yes $PYTHON -m tox -- --cov=julia -s
67+
68+
after_success:
69+
- coveralls

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ envlist = py27, py36
44
[testenv]
55
deps =
66
pytest
7+
pytest-cov
78
numpy
89
ipython
910
mock
@@ -22,3 +23,7 @@ passenv =
2223
# See: julia/with_rebuilt.py
2324
PYJULIA_TEST_REBUILD
2425
JULIA_EXE
26+
27+
# See: https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci
28+
TRAVIS
29+
TRAVIS_*

0 commit comments

Comments
 (0)