Skip to content

Commit

Permalink
Use pcov instead of phpdbg for code coverge.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 2, 2019
1 parent 2b47b1f commit d6d2387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit d6d2387

Please sign in to comment.