From 098e38f36561d2bb5cd7033ae6157c8be4b709c3 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Wed, 18 Jul 2018 09:46:56 +0200 Subject: [PATCH] Better solution for fixing composer's memory limit for php56 Raising memory for the full application is not the best, as noted here: https://stackoverflow.com/questions/51341463/unable-to-change-travis-ci-php-memory-limit/51381888#comment89735616_51381888 --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27175a8..eda70f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,9 +21,6 @@ matrix: # - vendor # - $HOME/.composer/cache -before_install: - - echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - install: - | if [[ $TRAVIS_PHP_VERSION != '7.1' && $TRAVIS_PHP_VERSION != hhv* ]]; then @@ -34,7 +31,7 @@ install: - travis_retry composer self-update && composer --version - travis_retry composer global require "fxp/composer-asset-plugin:^1.4.0" - export PATH="$HOME/.composer/vendor/bin:$PATH" - - travis_retry composer install --prefer-dist --no-interaction + - COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist --no-interaction before_script: - php -r "echo INTL_ICU_VERSION . \"\n\";"