Skip to content

Commit

Permalink
Enable sendind of code-coverage to the scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
lisachenko committed Feb 13, 2016
1 parent ba191db commit 97adf10
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.before.sh

This file was deleted.

5 changes: 5 additions & 0 deletions .travis.coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set -x
if [ "$TRAVIS_PHP_VERSION" = '7.0' ] ; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover ./clover.xml
fi
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ php:
- 7.0
- hhvm

install:
- ./.travis.before.sh
before_script:
- composer install

script:
- phpunit --verbose --coverage-text --coverage-clover=clover.xml --colors

after_script:
- sh .travis.coverage.sh

matrix:
allow_failures:
Expand Down

0 comments on commit 97adf10

Please sign in to comment.