Skip to content

Commit fe174bd

Browse files
committed
Fix Travis tests
1 parent eabd8d3 commit fe174bd

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.travis.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,35 @@ env:
1313
global:
1414
- COMPOSER_DISABLE_XDEBUG_WARN=1
1515

16+
matrix:
17+
fast_finish: true
18+
include:
19+
- php: '5.3'
20+
env: COMPOSER_FLAGS='--prefer-lowest'
21+
allow_failures:
22+
- php: nightly
23+
24+
1625
cache:
1726
directories:
1827
- "$HOME/.composer/cache"
1928

2029
before_install:
2130
# From https://github.com/travis-ci/travis-ci/issues/5780#issuecomment-196308406
2231
- |
32+
XDEBUG_INI="/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini"
33+
if [ ! -f "$XDEBUG_INI" ]; then
34+
return
35+
fi
36+
2337
function composer()
2438
{
25-
mv /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini
39+
mv $XDEBUG_INI ~/xdebug.ini
2640
COMPOSER="$(which composer)"
2741
$COMPOSER "$@"
2842
STATUS=$?
29-
mv ~/xdebug.ini /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
43+
mv ~/xdebug.ini $XDEBUG_INI
44+
3045
return $STATUS
3146
}
3247

0 commit comments

Comments
 (0)