Skip to content

Commit

Permalink
Add scrutinizer support
Browse files Browse the repository at this point in the history
  • Loading branch information
stefk committed Oct 28, 2015
1 parent e6cee46 commit 5966192
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .scrutinizer.yml
@@ -0,0 +1,3 @@
tools:
external_code_coverage:
timeout: 1200
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -8,10 +8,12 @@ matrix:
- php: 5.6
- php: 7
- php: hhvm
- php: 7

install:
- travis_retry composer install --no-interaction --prefer-source

script:
- vendor/bin/phpunit --coverage-text
- vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
- sh coverage.sh
6 changes: 6 additions & 0 deletions coverage.sh
@@ -0,0 +1,6 @@
set -x

if [ "$TRAVIS_PHP_VERSION" = '5.6' ] ; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover ./clover.xml
fi

0 comments on commit 5966192

Please sign in to comment.