Skip to content
Snippets Groups Projects
Commit 77213592 authored by Rishikesh's avatar Rishikesh Committed by Gael Varoquaux
Browse files

[MRG+1] Enable codecov for coverage report (#8311)

* Replace coveralls from codecov for coverage report

Replacing code coverage tool from coveralls to codecov.

Issue: #8305

* Add codecov badge for coverage report

Replace coveralls badge from codecov badge
parent db74d190
No related branches found
No related tags found
No related merge requests found
.. -*- mode: rst -*- .. -*- 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| image:: https://api.travis-ci.org/scikit-learn/scikit-learn.svg?branch=master
.. _Travis: https://travis-ci.org/scikit-learn/scikit-learn .. _Travis: https://travis-ci.org/scikit-learn/scikit-learn
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
.. |AppVeyor| image:: https://ci.appveyor.com/api/projects/status/github/scikit-learn/scikit-learn?branch=master&svg=true .. |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 .. _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 .. |Codecov| image:: https://codecov.io/github/scikit-learn/scikit-learn/badge.svg?branch=master&service=github
.. _Coveralls: https://coveralls.io/r/scikit-learn/scikit-learn .. _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| 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 .. _CircleCI: https://circleci.com/gh/scikit-learn/scikit-learn
......
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
set -e set -e
if [[ "$COVERAGE" == "true" ]]; then 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 # from TEST_DIR where nosetests has been run
cp $TEST_DIR/.coverage $TRAVIS_BUILD_DIR cp $TEST_DIR/.coverage $TRAVIS_BUILD_DIR
cd $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 # very reliable but we don't want travis to report a failure
# in the github UI just because the coverage report failed to # in the github UI just because the coverage report failed to
# be published. # be published.
coveralls || echo "Coveralls upload failed" codecov || echo "codecov upload failed"
fi fi
...@@ -95,7 +95,7 @@ elif [[ "$DISTRIB" == "scipy-dev-wheels" ]]; then ...@@ -95,7 +95,7 @@ elif [[ "$DISTRIB" == "scipy-dev-wheels" ]]; then
fi fi
if [[ "$COVERAGE" == "true" ]]; then if [[ "$COVERAGE" == "true" ]]; then
pip install coverage coveralls pip install coverage codecov
fi fi
if [[ "$SKIP_TESTS" == "true" ]]; then if [[ "$SKIP_TESTS" == "true" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment