diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4a0a20..afcfc78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,8 +47,6 @@ jobs: env: DATABASE: ${{ matrix.database }} MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} - - run: php tests/coverage/scrutinizer.php - if: matrix.coverage == 'xdebug' - uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index fd7df9b..2da962f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Eloquent HasManyDeep [![CI](https://github.com/staudenmeir/eloquent-has-many-deep/actions/workflows/ci.yml/badge.svg)](https://github.com/staudenmeir/eloquent-has-many-deep/actions/workflows/ci.yml) -[![Code Coverage](https://scrutinizer-ci.com/g/staudenmeir/eloquent-has-many-deep/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/staudenmeir/eloquent-has-many-deep/?branch=master) +[![Code Coverage](https://codecov.io/gh/staudenmeir/eloquent-has-many-deep/graph/badge.svg?token=H59fIf4mG6)](https://codecov.io/gh/staudenmeir/eloquent-has-many-deep) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/staudenmeir/eloquent-has-many-deep/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/staudenmeir/eloquent-has-many-deep/?branch=master) [![Latest Stable Version](https://poser.pugx.org/staudenmeir/eloquent-has-many-deep/v/stable)](https://packagist.org/packages/staudenmeir/eloquent-has-many-deep) [![Total Downloads](https://poser.pugx.org/staudenmeir/eloquent-has-many-deep/downloads)](https://packagist.org/packages/staudenmeir/eloquent-has-many-deep/stats) diff --git a/tests/coverage/scrutinizer.php b/tests/coverage/scrutinizer.php deleted file mode 100644 index b2b8fb2..0000000 --- a/tests/coverage/scrutinizer.php +++ /dev/null @@ -1,32 +0,0 @@ - exec('git rev-parse HEAD'), - 'parents' => [ - 0 => exec('git log --pretty=%P -n1 HEAD'), - ], - 'coverage' => [ - 'format' => 'php-clover', - 'data' => base64_encode( - str_replace( - getcwd() . '/', - '{scrutinizer_project_base_path}/', - file_get_contents('coverage.xml') - ) - ), - ], -]; - -$options = [ - 'http' => [ - 'method' => 'POST', - 'header' => 'Content-Type: application/json', - 'content' => json_encode($data), - ], -]; - -$context = stream_context_create($options); - -file_get_contents($url, false, $context);