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:
@ -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\";"
|
||||
|
||||
Reference in New Issue
Block a user