Skip to content

Commit dc6e84f

Browse files
committed
fix travis build
1 parent 093fc3b commit dc6e84f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ matrix:
1010
- php: 5.4
1111
- php: 5.5
1212
- php: 5.6
13-
env: SCRUTINIZER=1
13+
env: SCRUTINIZER=1 PHPUNIT_FLAGS="--coverage-clover=coverage.xml"
1414
- php: 7.0
1515
env: COMPOSER_FLAGS="--prefer-lowest"
1616
- php: 7.1
@@ -26,14 +26,15 @@ cache:
2626
- $HOME/.composer/cache
2727

2828
before_script:
29+
- if [[ SCRUTINIZER != '1' ]]; then phpenv config-rm xdebug.ini || true; fi
2930
- composer self-update
3031
- composer update $COMPOSER_FLAGS --prefer-dist
3132

3233
script:
3334
- stty cols 120
3435
- if [ "$CS_FIXER" == 1 ]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.13.1/php-cs-fixer.phar && php php-cs-fixer.phar fix --dry-run --diff; fi
3536
- mkdir -p build/logs
36-
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
37+
- ./vendor/bin/phpunit $PHPUNIT_FLAGS
3738

3839
after_script:
3940
- if [ "$SCRUTINIZER" == 1 ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi

0 commit comments

Comments
 (0)