- Installing symfony/symfony (v2.8.3) Downloading: 85%PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 6553600 bytes) in phar:///home/travis/.phpenv/versions/5.4.37/bin/composer/src/Composer/Util/RemoteFilesystem.php on line 174 Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 6553600 bytes) in phar:///home/travis/.phpenv/versions/5.4.37/bin/composer/src/Composer/Util/RemoteFilesystem.php on line 174
nearly every build of my project is failing since we updated from Symfony 2.8.2 -> 2.8.3 with this error (out of memory). If I force a rebuild enough times, it eventually passes, so it is obviously not a problem with the project, but with travis or composer or the combination (or Symfony, I suppose). It ONLY fails when trying to load Symfony. It seems like the problem would be widespread, but I cannot find anything on SO or issues at GH.
Does anyone have any suggestions on how to correct the problem?
Instead
composer updateYou should callcomposer install -o(with optimized autloader) on your CI server.Running composer install will:
Running composer update will:
Using dependences versions from
composer.lockfile will give you confidence that Your tests are performed on exactly this same dependencies as you used to development. Even if in yourcomposer.jsonyou usedev-masterversions.If for some reasons you want to run
composer updateon travis then disablingxdebugbefore composer install (enable it after if needed for your tests) can improvecomposerperformance.xdebugis enabled by default on travis.https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer