From fe174bd6646c59ff6e7ce0b963ae985ebfc5447a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Wed, 21 Sep 2016 16:04:50 +0100 Subject: [PATCH] Fix Travis tests --- .travis.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4e529da..32ffbe7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,15 @@ env: global: - COMPOSER_DISABLE_XDEBUG_WARN=1 +matrix: + fast_finish: true + include: + - php: '5.3' + env: COMPOSER_FLAGS='--prefer-lowest' + allow_failures: + - php: nightly + + cache: directories: - "$HOME/.composer/cache" @@ -20,13 +29,19 @@ cache: before_install: # From https://github.com/travis-ci/travis-ci/issues/5780#issuecomment-196308406 - | + XDEBUG_INI="/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini" + if [ ! -f "$XDEBUG_INI" ]; then + return + fi + function composer() { - mv /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini + mv $XDEBUG_INI ~/xdebug.ini COMPOSER="$(which composer)" $COMPOSER "$@" STATUS=$? - mv ~/xdebug.ini /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini + mv ~/xdebug.ini $XDEBUG_INI + return $STATUS }