From 941f65a20582107679b1e86b231aaa3bd001b3e4 Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Fri, 21 Feb 2020 09:59:34 +0100 Subject: [PATCH] Disable Scrutinizer; enable Codecov (#320) * Disable Scrutinizer; enable Codecov * Remove forcing of distro; leave Xdebug on to retrieve coverage; remove explicit coverage step * Resolve Travis config warnings * Link cleanup * Trigger new build --- .scrutinizer.yml | 23 ----------------------- .travis.yml | 22 +++++++--------------- README.md | 20 +++++++++----------- codecov.yml | 1 + 4 files changed, 17 insertions(+), 49 deletions(-) delete mode 100644 .scrutinizer.yml create mode 100644 codecov.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index b3a0fc92..00000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,23 +0,0 @@ -checks: - php: true - -coding_style: - php: - spaces: - around_operators: - concatenation: true - negation: true - other: - after_type_cast: false - -tools: - external_code_coverage: true - - php_code_sniffer: - config: - standard: "PSR2" - -filter: - excluded_paths: - - tests/* - - examples/* diff --git a/.travis.yml b/.travis.yml index 290cb75e..2d0fb92b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,17 @@ language: php -sudo: false -dist: trusty +os: linux php: - - 7.1 - - 7.2 - - 7.3 - 7.4 + - 7.3 + - 7.2 + - 7.1 cache: directories: - $HOME/.composer/cache/files before_install: - - phpenv config-rm xdebug.ini || echo "Can't disable xDebug" - | if [ "$SYMFONY_VERSION" != "" ]; then sed -ri '/symfony\/monolog-bundle/! s/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'$SYMFONY_VERSION'"/' composer.json; @@ -24,8 +22,9 @@ before_install: install: - travis_retry travis_wait composer update --no-interaction --prefer-dist --prefer-stable -script: - - vendor/bin/phpunit -v +script: >- + vendor/bin/phpunit -v --coverage-clover=build/coverage-report.xml + && bash <(curl -s https://codecov.io/bash) -f build/coverage-report.xml jobs: include: @@ -47,18 +46,11 @@ jobs: - travis_retry travis_wait composer update --no-interaction --prefer-dist --prefer-stable --prefer-lowest - stage: Code style and static analysis name: PHPStan - php: 7.4 script: - composer phpstan - script: - composer cs-check name: PHP-CS-Fixer - - stage: coverage - script: - - phpdbg -qrr vendor/bin/phpunit --coverage-clover clover.xml - after_success: - - wget https://scrutinizer-ci.com/ocular.phar - - php ocular.phar code-coverage:upload --format=php-clover clover.xml --revision=$TRAVIS_COMMIT allow_failures: - name: sentry/sentry dev-develop stage: Test diff --git a/README.md b/README.md index f9bd97cc..9bc819d8 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,12 @@ Symfony integration for [Sentry](https://getsentry.com/). [![Stable release][Last stable image]][Packagist link] -[![Unstable release][Last unstable image]][Packagist link] +[![Total Downloads](https://poser.pugx.org/sentry/sentry/downloads)](https://packagist.org/packages/sentry/sentry) +[![Monthly Downloads](https://poser.pugx.org/sentry/sentry/d/monthly)](https://packagist.org/packages/sentry/sentry) +[![License](https://poser.pugx.org/sentry/sentry/license)](https://packagist.org/packages/sentry/sentry) -[![Build status][Master build image]][Master build link] -[![Scrutinizer][Master scrutinizer image]][Master scrutinizer link] -[![Coverage Status][Master coverage image]][Master scrutinizer link] +[![Build Status][Travis Master Build Status Image]][Travis Build Status] [![Coverage Status][Master Code Coverage Image]][Master Code Coverage] +[![Discord](https://img.shields.io/discord/621778831602221064)](https://discord.gg/cWnMQeA) ## Benefits @@ -192,11 +193,8 @@ final class SentryCustomizationCompilerPass implements CompilerPassInterface ``` [Last stable image]: https://poser.pugx.org/sentry/sentry-symfony/version.svg -[Last unstable image]: https://poser.pugx.org/sentry/sentry-symfony/v/unstable.svg -[Master build image]: https://travis-ci.org/getsentry/sentry-symfony.svg?branch=master -[Master scrutinizer image]: https://scrutinizer-ci.com/g/getsentry/sentry-symfony/badges/quality-score.png?b=master -[Master coverage image]: https://scrutinizer-ci.com/g/getsentry/sentry-symfony/badges/coverage.png?b=master - [Packagist link]: https://packagist.org/packages/sentry/sentry-symfony -[Master build link]: https://travis-ci.org/getsentry/sentry-symfony -[Master scrutinizer link]: https://scrutinizer-ci.com/g/getsentry/sentry-symfony/?branch=master +[Travis Build Status]: http://travis-ci.org/getsentry/sentry-symfony +[Travis Master Build Status Image]: https://img.shields.io/travis/getsentry/sentry-symfony/master?logo=travis +[Master Code Coverage]: https://codecov.io/gh/getsentry/sentry-symfony/branch/master +[Master Code Coverage Image]: https://img.shields.io/codecov/c/github/getsentry/sentry-symfony/master?logo=codecov diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..69cb7601 --- /dev/null +++ b/codecov.yml @@ -0,0 +1 @@ +comment: false