From e96c01736552977061d3620f0e9b358a4269d98c Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Fri, 22 Feb 2019 17:23:00 -0800 Subject: [PATCH] Replaced Xdebug with PCOV for code coverage --- .travis.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 62e1a3d5c0a..9620b0c3c14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,18 +8,14 @@ cache: - $HOME/.composer/cache before_install: + - phpenv config-rm xdebug.ini || true - | - if [ "x$COVERAGE" != "xyes" ]; then - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || true + if [ "x$COVERAGE" == "xyes" ]; then + pecl install pcov-1.0.0 fi before_script: - if [[ "$DB" == "mysql" || "$DB" == "mysqli" || "$DB" == *"mariadb"* ]]; then mysql < tests/travis/create-mysql-schema.sql; fi; - - | - if [ "x$COVERAGE" == "xyes" ] && [[ ! $(php -m | grep -si xdebug) ]]; then - echo "xdebug is required for coverage" - exit 1 - fi install: - rm composer.lock