Skip to content

Commit aedd251

Browse files
committed
Disable the code coverage upload on PHP nightly
PHP nightly does not have XDebug and so cannot upload code coverage. This check avoids notifying scrutinizer that there is no coverage in case the PHP nightly job finishes first.
1 parent 44b8361 commit aedd251

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ install:
1919
script: phpunit -v --coverage-clover=coverage.clover
2020

2121
after_script:
22-
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover
22+
- if [ "nightly" != "$TRAVIS_PHP_VERSION" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

0 commit comments

Comments
 (0)