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
This commit is contained in:
Lorenzo Milesi
2018-07-18 09:46:56 +02:00
parent 1d7de616df
commit 098e38f365

View File

@ -21,9 +21,6 @@ matrix:
# - vendor # - vendor
# - $HOME/.composer/cache # - $HOME/.composer/cache
before_install:
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install: install:
- | - |
if [[ $TRAVIS_PHP_VERSION != '7.1' && $TRAVIS_PHP_VERSION != hhv* ]]; then 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 self-update && composer --version
- travis_retry composer global require "fxp/composer-asset-plugin:^1.4.0" - travis_retry composer global require "fxp/composer-asset-plugin:^1.4.0"
- export PATH="$HOME/.composer/vendor/bin:$PATH" - 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: before_script:
- php -r "echo INTL_ICU_VERSION . \"\n\";" - php -r "echo INTL_ICU_VERSION . \"\n\";"