Skip to content

Commit 530bc41

Browse files
lucianopaztwiecki
authored andcommitted
Add codecov coverage
1 parent 75ec55f commit 530bc41

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

.codecov.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "70...100"
8+
9+
status:
10+
project: yes
11+
patch: yes
12+
changes: no
13+
14+
comment:
15+
layout: "reach, diff, flags, files"
16+
behavior: default
17+
require_changes: false # if true: only post the comment if coverage changes
18+
require_base: no # [yes :: must have a base report to post]
19+
require_head: yes # [yes :: must have a head report to post]
20+
branches: null # branch names that can post comment

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919

2020
install:
2121
- . ./scripts/create_testenv.sh
22-
- pip install coveralls
22+
- pip install codecov
2323
- conda list && pip freeze
2424

2525
env:
@@ -37,4 +37,4 @@ script:
3737
- . ./scripts/test.sh $TESTCMD
3838

3939
after_success:
40-
- coveralls
40+
- codecov

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ Sponsors
190190
:target: https://mybinder.org/v2/gh/pymc-devs/pymc3/master?filepath=%2Fdocs%2Fsource%2Fnotebooks
191191
.. |Build Status| image:: https://travis-ci.org/pymc-devs/pymc3.svg?branch=master
192192
:target: https://travis-ci.org/pymc-devs/pymc3
193-
.. |Coverage| image:: https://coveralls.io/repos/github/pymc-devs/pymc3/badge.svg?branch=master
194-
:target: https://coveralls.io/github/pymc-devs/pymc3?branch=master
193+
.. |Coverage| image:: https://codecov.io/gh/pymc-devs/pymc3/branch/master/graph/badge.svg
194+
:target: https://codecov.io/gh/pymc-devs/pymc3
195195
.. |NumFOCUS| image:: https://www.numfocus.org/wp-content/uploads/2017/03/1457562110.png
196196
:target: http://www.numfocus.org/
197197
.. |Quantopian| image:: https://raw.githubusercontent.com/pymc-devs/pymc3/master/docs/quantopianlogo.jpg

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ if [[ "$RUN_PYLINT" == "true" ]]; then
77
fi
88

99
_FLOATX=${FLOATX:=float64}
10-
THEANO_FLAGS="floatX=${_FLOATX},gcc.cxxflags='-march=core2'" pytest -v --cov=pymc3 "$@"
10+
THEANO_FLAGS="floatX=${_FLOATX},gcc.cxxflags='-march=core2'" pytest -v --cov=pymc3 --cov-report=xml "$@"

0 commit comments

Comments
 (0)