Replaced Xdebug with PCOV for code coverage

parent 29c7ba6a
...@@ -8,18 +8,14 @@ cache: ...@@ -8,18 +8,14 @@ cache:
- $HOME/.composer/cache - $HOME/.composer/cache
before_install: before_install:
- phpenv config-rm xdebug.ini || true
- | - |
if [ "x$COVERAGE" != "xyes" ]; then if [ "x$COVERAGE" == "xyes" ]; then
mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || true pecl install pcov-1.0.0
fi fi
before_script: before_script:
- if [[ "$DB" == "mysql" || "$DB" == "mysqli" || "$DB" == *"mariadb"* ]]; then mysql < tests/travis/create-mysql-schema.sql; fi; - 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: install:
- rm composer.lock - rm composer.lock
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment