Skip to content

Commit 7d5e31d

Browse files
author
Alexander Obuhovich
committed
Merge pull request #55 from aik099/no-coverage-on-hhvm-fix
Don't collect code coverage on HHVM because it doesn't have xdebug
2 parents 62889c5 + e46e9e7 commit 7d5e31d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ before_script:
3939
- mkdir -p build/logs
4040

4141
script:
42-
- phpunit -v --coverage-clover build/logs/clover.xml
42+
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpunit --coverage-clover build/logs/clover.xml; fi;
43+
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then phpunit; fi;
4344

4445
after_script:
45-
- php vendor/bin/coveralls -v
46-
- wget https://scrutinizer-ci.com/ocular.phar -t 3
47-
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
46+
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;
47+
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar -t 3; fi;
48+
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;

0 commit comments

Comments
 (0)