Skip to content

Commit 27f58cb

Browse files
committed
Attempt to add coverage to Scrutinizer
1 parent 7b01399 commit 27f58cb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.scrutinizer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
filter:
22
excluded_paths:
33
- tests/*
4+
tools:
5+
external_code_coverage: true
46
build:
57
nodes:
68
analysis:

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ before_script:
1212
- travis_retry composer self-update
1313
- travis_retry composer install --no-interaction
1414

15-
script: ./vendor/bin/phpunit
15+
script: ./vendor/bin/phpunit --coverage-clover=coverage.clover
16+
17+
after_script:
18+
- wget https://scrutinizer-ci.com/ocular.phar
19+
- php ocular.phar code-coverage:upload --access-token=SCRUTINIZER_TOKEN --format=php-clover coverage.clover
1620

1721
branches:
1822
only:

0 commit comments

Comments
 (0)