Browse Source

Switch to codecov for code coverage reporting.

It now uses GH annotations to show lines without test coverage on the pull request itself.
ADmad 5 years ago
parent
commit
f1b0b13faf
4 changed files with 11 additions and 8 deletions
  1. 1 0
      .gitattributes
  2. 1 6
      .travis.yml
  3. 2 2
      README.md
  4. 7 0
      codecov.yml

+ 1 - 0
.gitattributes

@@ -54,6 +54,7 @@ tests/TestCase export-ignore
 .mailmap export-ignore
 .stickler.yml export-ignore
 .travis.yml export-ignore
+codecov.yml export-ignore
 phpcs.xml.dist export-ignore
 phpstan.neon export-ignore
 phpstan-baseline.neon export-ignore

+ 1 - 6
.travis.yml

@@ -73,12 +73,7 @@ script:
       fi
 
 after_success:
-  - |
-      if [[ $TRAVIS_PHP_VERSION == '7.4' ]]; then
-        wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar
-        chmod +x php-coveralls.phar
-        ./php-coveralls.phar
-      fi
+  - if [[ $TRAVIS_PHP_VERSION == '7.4' ]]; then bash <(curl -s https://codecov.io/bash); fi
 
 notifications:
   email: false

+ 2 - 2
README.md

@@ -10,8 +10,8 @@
     <a href="https://travis-ci.com/cakephp/cakephp" target="_blank">
         <img alt="Build Status" src="https://img.shields.io/travis/com/cakephp/cakephp/master.svg?style=flat-square">
     </a>
-    <a href="https://coveralls.io/r/cakephp/cakephp?branch=master" target="_blank">
-        <img alt="Coverage Status" src="https://img.shields.io/coveralls/cakephp/cakephp/master.svg?style=flat-square">
+    <a href="https://codecov.io/gh/cakephp/cakephp/branch/master" target="_blank">
+        <img alt="Coverage Status" src="https://img.shields.io/codecov/c/github/cakephp/cakephp?style=flat-square">
     </a>
     <a href="https://squizlabs.github.io/PHP_CodeSniffer/analysis/cakephp/cakephp/" target="_blank">
         <img alt="Code Consistency" src="https://squizlabs.github.io/PHP_CodeSniffer/analysis/cakephp/cakephp/grade.svg">

+ 7 - 0
codecov.yml

@@ -0,0 +1,7 @@
+codecov:
+  require_ci_to_pass: yes
+
+coverage:
+  range: "90...100"
+
+comment: false