Skip to content

Commit 78ebf11

Browse files
committed
Merge branch 'master' into add-support-for-event-subscribers
2 parents 5eb1a36 + dda5e60 commit 78ebf11

File tree

3 files changed

+57
-7
lines changed

3 files changed

+57
-7
lines changed

.scrutinizer.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
checks:
2+
php: true
3+
4+
coding_style:
5+
php:
6+
spaces:
7+
around_operators:
8+
concatenation: true
9+
negation: true
10+
other:
11+
after_type_cast: false
12+
13+
tools:
14+
external_code_coverage: true
15+
16+
php_code_sniffer:
17+
config:
18+
standard: "PSR2"
19+
20+
filter:
21+
excluded_paths:
22+
- tests/*
23+
- examples/*

.travis.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
11
language: php
2+
sudo: false
23

34
php:
45
- 5.3
56
- 5.4
67
- 5.5
78
- 5.6
89
- 7.0
10+
- 7.1
911
- hhvm
1012

1113
matrix:
14+
include:
15+
- php: 7.1
16+
env: TEST_COVERAGE=true
1217
allow_failures:
1318
- php: hhvm
14-
- php: 7.0
1519
fast_finish: true
1620

17-
sudo: false
18-
1921
cache:
2022
directories:
21-
- $HOME/.composer/cache
23+
- $HOME/.composer/cache/files
2224

2325
before_install:
2426
- composer self-update
27+
- if [[ $TEST_COVERAGE ]]; then PHPUNIT_FLAGS="--coverage-clover clover.xml"; fi
2528

26-
install: travis_retry composer install --no-interaction --prefer-source
29+
install: travis_retry composer install --no-interaction --prefer-dist
2730

2831
script:
32+
- vendor/bin/phpunit -v $PHPUNIT_FLAGS
2933
- vendor/bin/php-cs-fixer fix --config-file=.php_cs --verbose --diff --dry-run
30-
- vendor/bin/phpunit
34+
35+
after_success:
36+
- if [[ $TEST_COVERAGE ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
Symfony integration for [Sentry](https://getsentry.com/).
44

5-
[![Build Status](https://travis-ci.org/getsentry/sentry-symfony.svg?branch=master)](https://travis-ci.org/getsentry/sentry-symfony)
5+
[![Stable release][Last stable image]][Packagist link]
6+
[![Unstable release][Last unstable image]][Packagist link]
7+
8+
[![Build status][Master build image]][Master build link]
9+
[![Scrutinizer][Master scrutinizer image]][Master scrutinizer link]
10+
[![Coverage Status][Master coverage image]][Master coverage link]
11+
612

713
## Installation
814

@@ -71,6 +77,9 @@ sentry:
7177
7278
### dsn
7379
80+
[Sentry DSN](https://docs.sentry.io/quickstart/#configure-the-dsn) value of your project.
81+
Leaving this value empty will effectively disable Sentry reporting.
82+
7483
```yaml
7584
sentry:
7685
dsn: "https://public:secret@sentry.example.com/1"
@@ -121,6 +130,7 @@ sentry:
121130
error_types: E_ALL & ~E_DEPRECATED & ~E_NOTICE
122131
```
123132
133+
124134
## Customization
125135
126136
It is possible to customize the configuration of the user context, as well
@@ -251,3 +261,14 @@ app.my_sentry_event_subscriber:
251261
tags:
252262
- { name: kernel.event_subscriber }
253263
```
264+
265+
[Last stable image]: https://poser.pugx.org/sentry/sentry-symfony/version.svg
266+
[Last unstable image]: https://poser.pugx.org/sentry/sentry-symfony/v/unstable.svg
267+
[Master build image]: https://travis-ci.org/getsentry/sentry-symfony.svg?branch=master
268+
[Master scrutinizer image]: https://scrutinizer-ci.com/g/getsentry/sentry-symfony/badges/quality-score.png?b=master
269+
[Master coverage image]: https://coveralls.io/repos/getsentry/sentry-symfony/badge.svg?branch=master&service=github
270+
271+
[Packagist link]: https://packagist.org/packages/sentry/sentry-symfony
272+
[Master build link]: https://travis-ci.org/getsentry/sentry-symfony
273+
[Master scrutinizer link]: https://scrutinizer-ci.com/g/getsentry/sentry-symfony/?branch=master
274+
[Master coverage link]: https://coveralls.io/github/getsentry/sentry-symfony?branch=master

0 commit comments

Comments
 (0)