Skip to content

Commit

Permalink
Disable Scrutinizer; enable Codecov (#320)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Jean85 committed Feb 21, 2020
1 parent 3db47e7 commit 941f65a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 49 deletions.
23 changes: 0 additions & 23 deletions .scrutinizer.yml

This file was deleted.

22 changes: 7 additions & 15 deletions .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;
Expand All @@ -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:
Expand All @@ -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
Expand Down
20 changes: 9 additions & 11 deletions README.md
Expand Up @@ -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

Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions codecov.yml
@@ -0,0 +1 @@
comment: false

0 comments on commit 941f65a

Please sign in to comment.