Skip to content

Commit 7d1c8cf

Browse files
committed
travis
1 parent bc9e7eb commit 7d1c8cf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ env:
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

@@ -30,9 +32,15 @@ install:
3032
- if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
3133
- if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
3234

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+
3340
script:
3441
- if [[ "$DRIVER" = 'phpdbg' ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
3542
- 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
3644

3745
after_success:
3846
- bash <(curl -s https://codecov.io/bash)

tests/tests/CodeCoverageTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use SebastianBergmann\CodeCoverage\Driver\Driver;
1313
use SebastianBergmann\CodeCoverage\Driver\PHPDBG;
14+
use SebastianBergmann\CodeCoverage\Driver\PCOV;
1415
use SebastianBergmann\CodeCoverage\Driver\Xdebug;
1516
use SebastianBergmann\Environment\Runtime;
1617

0 commit comments

Comments
 (0)