Skip to content

Commit

Permalink
Replaced Xdebug with PCOV for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Feb 23, 2019
1 parent 29c7ba6 commit e96c017
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e96c017

Please sign in to comment.