Fix: Generate coverage on one PHP version only

This commit is contained in:
Andreas Möller 2016-02-02 19:42:52 +01:00
parent f3380ebccd
commit c4c862734c

View File

@ -8,16 +8,18 @@ matrix:
- php: 5.4
- php: 5.5
- php: 5.6
env: WITH_COVERAGE=true
- php: 7
- php: hhvm
allow_failures:
- php: 7
before_install:
- if [[ "$WITH_COVERAGE" != "true" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
- composer selfupdate
install:
- travis_retry composer install --no-interaction --prefer-source
script:
- vendor/bin/phpunit --coverage-text
- if [[ "$WITH_COVERAGE" == "true" ]]; then vendor/bin/phpunit --coverage-text; else vendor/bin/phpunit; fi