Skip to content

Commit

Permalink
fix travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Jul 5, 2020
1 parent 093fc3b commit 4ef3516
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ matrix:
- php: 5.4
- php: 5.5
- php: 5.6
env: SCRUTINIZER=1
env: SCRUTINIZER=1 PHPUNIT_FLAGS="--coverage-clover=coverage.xml"
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.1
Expand All @@ -26,14 +26,15 @@ cache:
- $HOME/.composer/cache

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

script:
- stty cols 120
- 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
- mkdir -p build/logs
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
- ./vendor/bin/phpunit $PHPUNIT_FLAGS

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

0 comments on commit 4ef3516

Please sign in to comment.