Skip to content

Commit 006dfb5

Browse files
casperboonefreekmurze
authored andcommitted
Add code coverage (#9)
1 parent 4625ef3 commit 006dfb5

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.scrutinizer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ checks:
1717
fix_identation_4spaces: true
1818
fix_doc_comments: true
1919

20+
tools:
21+
external_code_coverage: true

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: php
33
php:
44
- 5.6
55
- 7.0
6+
- 7.1
67

78
env:
89
matrix:
@@ -17,4 +18,5 @@ script:
1718
- phpunit --coverage-text --coverage-clover=coverage.clover
1819

1920
after_script:
20-
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
21+
- wget https://scrutinizer-ci.com/ocular.phar
22+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[![StyleCI](https://styleci.io/repos/65542206/shield)](https://styleci.io/repos/65542206)
77
[![SensioLabsInsight](https://img.shields.io/sensiolabs/i/6ac8b6d5-c215-4ba5-9a47-d1b312ec196d.svg?style=flat-square)](https://insight.sensiolabs.com/projects/6ac8b6d5-c215-4ba5-9a47-d1b312ec196d)
88
[![Quality Score](https://img.shields.io/scrutinizer/g/laravel-notification-channels/webpush.svg?style=flat-square)](https://scrutinizer-ci.com/g/laravel-notification-channels/webpush)
9+
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/laravel-notification-channels/webpush/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/laravel-notification-channels/webpush/?branch=master)
910
[![Total Downloads](https://img.shields.io/packagist/dt/laravel-notification-channels/webpush.svg?style=flat-square)](https://packagist.org/packages/laravel-notification-channels/webpush)
1011

1112
This package makes it easy to send web push notifications with Laravel 5.3.
@@ -114,7 +115,7 @@ $user->deletePushSubscription($endpoint);
114115

115116
## Demo
116117

117-
For a complete implementation with a Service Worker check this [demo](https://github.com/cretueusebiu/laravel-web-push-demo).
118+
For a complete implementation with a Service Worker check this [demo](https://github.com/cretueusebiu/laravel-web-push-demo).
118119

119120
## Browser Compatibility
120121

@@ -125,7 +126,7 @@ The [Push API](https://developer.mozilla.org/en/docs/Web/API/Push_API) currently
125126
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
126127

127128
## Testing
128-
129+
129130
``` bash
130131
$ composer test
131132
```

0 commit comments

Comments
 (0)