Skip to content

Commit 5bf2286

Browse files
committed
Merge pull request #227 from localheinz/fix/xdebug
Fix: Generate coverage on one PHP version only
2 parents b26cc82 + c4c8627 commit 5bf2286

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ matrix:
88
- php: 5.4
99
- php: 5.5
1010
- php: 5.6
11+
env: WITH_COVERAGE=true
1112
- php: 7
1213
- php: hhvm
1314
allow_failures:
1415
- php: 7
1516

1617
before_install:
18+
- if [[ "$WITH_COVERAGE" != "true" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
1719
- composer selfupdate
1820

1921
install:
2022
- travis_retry composer install --no-interaction --prefer-source
2123

2224
script:
23-
- vendor/bin/phpunit --coverage-text
25+
- if [[ "$WITH_COVERAGE" == "true" ]]; then vendor/bin/phpunit --coverage-text; else vendor/bin/phpunit; fi

0 commit comments

Comments
 (0)