Coverage with PCOV instead of xdebug
Because it is much, much faster than xdebug
This commit is contained in:
parent
4b6ad77690
commit
a163d9d1ab
|
@ -15,7 +15,7 @@ cache:
|
|||
|
||||
before_script:
|
||||
# Deactivate xdebug
|
||||
- if [ -z "$KEEP_XDEBUG" ]; then rm -rfv /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ; fi
|
||||
- phpenv config-rm xdebug.ini
|
||||
- composer install --ignore-platform-reqs
|
||||
|
||||
script:
|
||||
|
@ -32,9 +32,11 @@ jobs:
|
|||
|
||||
- stage: Coverage
|
||||
php: 7.2
|
||||
env: KEEP_XDEBUG=1
|
||||
script:
|
||||
- travis_wait 40 ./vendor/bin/phpunit --debug --coverage-clover coverage-clover.xml
|
||||
- pecl install pcov
|
||||
- composer require pcov/clobber --dev
|
||||
- ./vendor/bin/pcov clobber
|
||||
- ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
|
||||
after_script:
|
||||
- wget https://scrutinizer-ci.com/ocular.phar
|
||||
- php ocular.phar code-coverage:upload --format=php-clover tests/coverage-clover.xml
|
||||
|
|
Loading…
Reference in New Issue