Skip to content

Commit 74ecbc6

Browse files
committed
improve the Travis CI config
1 parent 5357618 commit 74ecbc6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cache:
88

99
env:
1010
global:
11-
- deps=""
11+
- COMPOSER_OPTIONS="--prefer-stable"
1212

1313
php:
1414
- 5.4
@@ -20,17 +20,16 @@ matrix:
2020
fast_finish: true
2121
include:
2222
- php: 5.3
23-
env: deps="low"
23+
env: COMPOSER_OPTIONS="--prefer-lowest --prefer-stable"
2424
- php: 7.0
25-
env: xdebug="yes"
25+
env: xdebug="yes" COMPOSER_OPTIONS=""
2626

2727
before_install:
2828
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$xdebug" != "yes" ]]; then phpenv config-rm xdebug.ini; fi
2929
- composer self-update
3030

3131
install:
32-
- if [ "$deps" = "low" ]; then composer update --prefer-lowest --prefer-stable; fi
33-
- if [ "$deps" = "" ]; then composer install; fi
32+
- composer update $COMPOSER_OPTIONS
3433

3534
script:
3635
- vendor/bin/phpspec run

0 commit comments

Comments
 (0)