From d6d2387260a128f607a452f711c2526c6168b04f Mon Sep 17 00:00:00 2001 From: ADmad Date: Fri, 2 Aug 2019 23:09:43 +0530 Subject: [PATCH] Use pcov instead of phpdbg for code coverge. Refs https://github.com/sebastianbergmann/phpunit/issues/3772 --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9e4cf44884c..f49358d7034 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,9 @@ matrix: before_install: - echo cakephp version && tail -1 VERSION.txt + - phpenv config-rm xdebug.ini + - if [ $CODECOVERAGE == 1 ]; then pecl install pcov; fi - if [ $DB = 'mysql' ]; then mysql -u root -e 'CREATE DATABASE cakephp_test;'; fi - if [ $DB = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi @@ -58,7 +60,7 @@ before_script: - composer install --prefer-dist --no-interaction script: - - if [[ $CODECOVERAGE == 1 ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml; fi + - if [[ $CODECOVERAGE == 1 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi - if [[ $CODECOVERAGE != 1 ]]; then vendor/bin/phpunit; fi after_script: