File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1717 matrix :
1818 - DRIVER="xdebug" DEPENDENCIES="high"
1919 - DRIVER="phpdbg" DEPENDENCIES="high"
20+ - DRIVER="pcov" DEPENDENCIES="high"
2021 - DRIVER="xdebug" DEPENDENCIES="low"
2122 - DRIVER="phpdbg" DEPENDENCIES="low"
23+ - DRIVER="pcov" DEPENDENCIES="low"
2224 global :
2325 - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
2426
2527before_install :
28+ - composer config github-oauth.github.com ${GH_TOKEN}
2629 - composer self-update
2730 - composer clear-cache
31+ - export COMPOSER_ROOT_VERSION=6.1.99
2832
2933install :
3034 - if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
3135 - if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
3236
37+ before_script :
38+ - |
39+ if [[ "$DRIVER" = 'pcov' ]]; then
40+ echo > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/xdebug.ini
41+ git clone https://github.com/krakjoe/pcov
42+ cd pcov
43+ phpize
44+ ./configure
45+ make clean install
46+ echo "extension=pcov.so" > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/pcov.ini
47+ cd $TRAVIS_BUILD_DIR
48+ fi
49+
3350script :
3451 - if [[ "$DRIVER" = 'phpdbg' ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
3552 - if [[ "$DRIVER" = 'xdebug' ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
53+ - if [[ "$DRIVER" = 'pcov' ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
3654
3755after_success :
3856 - bash <(curl -s https://codecov.io/bash)
You can’t perform that action at this time.
0 commit comments