Skip to content

Commit dda5e60

Browse files
authored
Merge pull request #54 from getsentry/improve_travis
Improve Travis build and add Scrutinizer
2 parents 7b33ce7 + e581c67 commit dda5e60

File tree

3 files changed

+53
-7
lines changed

3 files changed

+53
-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: 18 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

@@ -124,3 +130,14 @@ Define which error types should be reported.
124130
sentry:
125131
error_types: E_ALL & ~E_DEPRECATED & ~E_NOTICE
126132
```
133+
134+
[Last stable image]: https://poser.pugx.org/sentry/sentry-symfony/version.svg
135+
[Last unstable image]: https://poser.pugx.org/sentry/sentry-symfony/v/unstable.svg
136+
[Master build image]: https://travis-ci.org/getsentry/sentry-symfony.svg?branch=master
137+
[Master scrutinizer image]: https://scrutinizer-ci.com/g/getsentry/sentry-symfony/badges/quality-score.png?b=master
138+
[Master coverage image]: https://coveralls.io/repos/getsentry/sentry-symfony/badge.svg?branch=master&service=github
139+
140+
[Packagist link]: https://packagist.org/packages/sentry/sentry-symfony
141+
[Master build link]: https://travis-ci.org/getsentry/sentry-symfony
142+
[Master scrutinizer link]: https://scrutinizer-ci.com/g/getsentry/sentry-symfony/?branch=master
143+
[Master coverage link]: https://coveralls.io/github/getsentry/sentry-symfony?branch=master

0 commit comments

Comments
 (0)