Skip to content

Commit

Permalink
Fix Travis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Sep 21, 2016
1 parent eabd8d3 commit fe174bd
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,35 @@ 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"

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
}
Expand Down

0 comments on commit fe174bd

Please sign in to comment.