Skip to content

Commit

Permalink
Fix code coverage tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Mar 16, 2018
1 parent 1337895 commit e73d748
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ build: true
inherit: true

tools:
external_code_coverage: true
php_code_coverage: true
php_code_sniffer: true
php_cpd: true
Expand All @@ -11,3 +12,7 @@ tools:
php_pdepend: true
php_analyzer: true
sensiolabs_security_checker: true

filter:
excluded_paths:
- 'vendor/*'
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm

before_script:
Expand All @@ -15,6 +16,12 @@ before_script:
script:
- composer test

after_success:
- if [[ "`phpenv version-name`" != "7.1" ]]; then exit 0; fi
- phpunit --coverage-clover coverage.clover
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

cache:
directories:
- $HOME/.composer/cache

0 comments on commit e73d748

Please sign in to comment.