File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 17
17
matrix :
18
18
- DRIVER="xdebug" DEPENDENCIES="high"
19
19
- DRIVER="phpdbg" DEPENDENCIES="high"
20
+ - DRIVER="pcov" DEPENDENCIES="high"
20
21
- DRIVER="xdebug" DEPENDENCIES="low"
21
22
- DRIVER="phpdbg" DEPENDENCIES="low"
23
+ - DRIVER="pcov" DEPENDENCIES="low"
22
24
global :
23
25
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
24
26
@@ -30,9 +32,15 @@ install:
30
32
- if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
31
33
- if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
32
34
35
+ before_script :
36
+ - if [[ "$DRIVER" = 'pcov' ]]; then pecl install channel://pecl.php.net/pcov-0.9.0; fi
37
+ - if [[ "$DRIVER" = 'pcov' ]]; then echo "extension=pcov.so" > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/pcov.ini; fi
38
+ - if [[ "$DRIVER" = 'pcov' ]]; then echo > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/xdebug.ini; fi
39
+
33
40
script :
34
41
- if [[ "$DRIVER" = 'phpdbg' ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
35
42
- if [[ "$DRIVER" = 'xdebug' ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
43
+ - if [[ "$DRIVER" = 'pcov' ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
36
44
37
45
after_success :
38
46
- bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 11
11
12
12
use SebastianBergmann \CodeCoverage \Driver \Driver ;
13
13
use SebastianBergmann \CodeCoverage \Driver \PHPDBG ;
14
+ use SebastianBergmann \CodeCoverage \Driver \PCOV ;
14
15
use SebastianBergmann \CodeCoverage \Driver \Xdebug ;
15
16
use SebastianBergmann \Environment \Runtime ;
16
17
You can’t perform that action at this time.
0 commit comments