File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,18 @@ before_script:
36
36
# Install NGINX
37
37
- sh ./tests/install-nginx.sh
38
38
# Starting webserver
39
- - sh -c " if [ ' $TRAVIS_PHP_VERSION' = 'hhvm' ]; then ./tests/ci/install-apache-hhvm.sh; fi"
39
+ - if [ " $TRAVIS_PHP_VERSION" = 'hhvm' ]; then ./tests/ci/install-apache-hhvm.sh; fi
40
40
41
41
script :
42
42
- phpunit --coverage-clover=coverage.clover
43
43
- make -C doc SPHINXOPTS='-nW' html
44
44
- make -C doc spelling
45
45
46
46
after_script :
47
- - wget https://scrutinizer-ci.com/ocular.phar
48
- - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
47
+ # avoid uploading the code coverage for PHP 7 and HHVM as they cannot generate it (PHPUnit dropped the old HHVM driver
48
+ # and the XDebug API is not implemented in HHVM 3.5) and we don't want to cancel the Scrutinizer analysis by notifying
49
+ # it than no coverage data is available
50
+ - if [[ "$TRAVIS_PHP_VERSION" != "7" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
49
51
50
52
after_failure :
51
53
- cat /tmp/fos_nginx_error.log
You can’t perform that action at this time.
0 commit comments