File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -14,25 +14,22 @@ cache:
14
14
15
15
before_install :
16
16
- export XDEBUG="/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini"
17
- - if [[ -f "$XDEBUG" ]]; then mv "$XDEBUG" "$XDEBUG.disabled"; fi
17
+ - is_hhvm () { [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; }
18
+ - is_hhvm || mv -v "$XDEBUG" "$XDEBUG.disabled"
18
19
19
20
install :
20
21
- travis_retry composer update -a --no-interaction
21
22
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
22
23
23
24
before_script :
24
- - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]] ; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi
25
+ - if is_hhvm ; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi
25
26
26
27
script :
27
- - >
28
- if [[ -f "$XDEBUG.disabled" ]]; then mv "$XDEBUG.disabled" "$XDEBUG"; fi &&
29
- vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-text &&
30
- if [[ -f "$XDEBUG" ]]; then mv "$XDEBUG" "$XDEBUG.disabled"; fi
28
+ - is_hhvm || mv -v "$XDEBUG.disabled" "$XDEBUG"
29
+ - vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-text
30
+ - is_hhvm || mv -v "$XDEBUG" "$XDEBUG.disabled"
31
31
- vendor/bin/phpcs --standard=PSR2 src tests
32
32
- vendor/bin/php-cs-fixer fix -v --dry-run --allow-risky=yes --using-cache=no
33
33
34
34
after_script :
35
- - >
36
- if [[ ! $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then
37
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover;
38
- fi
35
+ - is_hhvm || php ocular.phar code-coverage:upload --format=php-clover coverage.clover
You can’t perform that action at this time.
0 commit comments