Skip to content

Commit 16a2dc3

Browse files
committed
Travis: More stable solution for removing Xdebug when not needed
As per https://twitter.com/kelunik/status/954242454676475904 When newer images of PHP versions become available, Xdebug isn't always installed. Using this little titbit, the builds won't break because of it.
1 parent 977feae commit 16a2dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ matrix:
2424

2525
before_install:
2626
# Speed up build time by disabling Xdebug when its not needed.
27-
- if [[ $TRAVIS_PHP_VERSION != "nightly" && $TRAVIS_PHP_VERSION != hhv* ]]; then phpenv config-rm xdebug.ini; fi
27+
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
2828
# Circumvent a bug in the travis HHVM image - ships with incompatible PHPUnit.
2929
- if [[ $TRAVIS_PHP_VERSION == hhv* ]]; then composer self-update; fi
3030
- if [[ $TRAVIS_PHP_VERSION == hhv* ]]; then composer require phpunit/phpunit:~4.0; fi

0 commit comments

Comments
 (0)