From a163d9d1ab7f4a34aeac8fb933f4a263055f1924 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Thu, 19 Dec 2019 11:03:04 +0100 Subject: [PATCH] Coverage with PCOV instead of xdebug Because it is much, much faster than xdebug --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3a3bbf2e..3e22c234 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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