Skip to content

Commit

Permalink
[MRG+1] Enable codecov for coverage report (scikit-learn#8311)
Browse files Browse the repository at this point in the history
* Replace coveralls from codecov for coverage report

Replacing code coverage tool from coveralls to codecov.

Issue: scikit-learn#8305

* Add codecov badge for coverage report

Replace coveralls badge from codecov badge
  • Loading branch information
rishikksh20 authored and GaelVaroquaux committed Feb 8, 2017
1 parent db74d19 commit 7721359
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.. -*- mode: rst -*-
|Travis|_ |AppVeyor|_ |Coveralls|_ |CircleCI|_ |Python27|_ |Python35|_ |PyPi|_ |DOI|_
|Travis|_ |AppVeyor|_ |Codecov|_ |CircleCI|_ |Python27|_ |Python35|_ |PyPi|_ |DOI|_

.. |Travis| image:: https://api.travis-ci.org/scikit-learn/scikit-learn.svg?branch=master
.. _Travis: https://travis-ci.org/scikit-learn/scikit-learn

.. |AppVeyor| image:: https://ci.appveyor.com/api/projects/status/github/scikit-learn/scikit-learn?branch=master&svg=true
.. _AppVeyor: https://ci.appveyor.com/project/sklearn-ci/scikit-learn/history

.. |Coveralls| image:: https://coveralls.io/repos/scikit-learn/scikit-learn/badge.svg?branch=master&service=github
.. _Coveralls: https://coveralls.io/r/scikit-learn/scikit-learn
.. |Codecov| image:: https://codecov.io/github/scikit-learn/scikit-learn/badge.svg?branch=master&service=github
.. _Codecov: https://codecov.io/github/scikit-learn/scikit-learn?branch=master

.. |CircleCI| image:: https://circleci.com/gh/scikit-learn/scikit-learn/tree/master.svg?style=shield&circle-token=:circle-token
.. _CircleCI: https://circleci.com/gh/scikit-learn/scikit-learn
Expand Down
6 changes: 3 additions & 3 deletions build_tools/travis/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
set -e

if [[ "$COVERAGE" == "true" ]]; then
# Need to run coveralls from a git checkout, so we copy .coverage
# Need to run codecov from a git checkout, so we copy .coverage
# from TEST_DIR where nosetests has been run
cp $TEST_DIR/.coverage $TRAVIS_BUILD_DIR
cd $TRAVIS_BUILD_DIR
# Ignore coveralls failures as the coveralls server is not
# Ignore codecov failures as the codecov server is not
# very reliable but we don't want travis to report a failure
# in the github UI just because the coverage report failed to
# be published.
coveralls || echo "Coveralls upload failed"
codecov || echo "codecov upload failed"
fi
2 changes: 1 addition & 1 deletion build_tools/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ elif [[ "$DISTRIB" == "scipy-dev-wheels" ]]; then
fi

if [[ "$COVERAGE" == "true" ]]; then
pip install coverage coveralls
pip install coverage codecov
fi

if [[ "$SKIP_TESTS" == "true" ]]; then
Expand Down

0 comments on commit 7721359

Please sign in to comment.