Skip to content

Commit

Permalink
Prevent Travis running out of memory during composer install
Browse files Browse the repository at this point in the history
  • Loading branch information
szymach committed Nov 30, 2016
1 parent 798094f commit 7b0dd26
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ sudo: false
cache:
directories:
- $HOME/.composer/cache
- vendor

matrix:
include:
- php: 5.4
env:
- DEPENDENCIES='low'
- COMPOSER_FLAGS='--prefer-lowest'
- php: 5.5
- php: 5.6
env:
Expand All @@ -26,9 +27,10 @@ matrix:
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- if [[ "$DEPENDENCIES" != "low" && ! $SYMFONY_VERSION ]]; then composer update -n --prefer-source; fi;
- if [[ "$DEPENDENCIES" != "low" && $SYMFONY_VERSION ]]; then composer require symfony/symfony:${SYMFONY_VERSION} -n --prefer-source; fi;
- if [[ "$DEPENDENCIES" == "low" ]]; then composer update --prefer-lowest -n --prefer-source; fi;
- if [[ $SYMFONY_VERSION ]]; then composer require symfony/symfony:${SYMFONY_VERSION} -n --no-update; fi;
# Avoid issues on composer update
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer update $COMPOSER_FLAGS

install:
- wget http://selenium-release.storage.googleapis.com/2.46/selenium-server-standalone-2.46.0.jar
Expand Down

0 comments on commit 7b0dd26

Please sign in to comment.