Travis + composer fails repeatedly when booting Symfony 2.8.3

  • Install symfony / symfony (v2.8.3) Download: 85% PHP Fatal error: allowed memory size 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 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

almost every build of my project fails because we upgraded from Symfony 2.8.2 -> 2.8.3 with this error (from memory). If I force enough time to rebuild, it eventually passes, so obviously this is not a problem with the project, but with a travis or composer or combination (or Symfony, I suppose). It ONLY fails when trying to download Symfony. It seems like the problem will be widespread, but I can't find anything in SO or problems in GH.

Does anyone have any suggestions for fixing the problem?

log from failed build

composer.json file

. travis.yml file

+4
source share
2 answers

composer update composer install -o ( ) CI.

:

  • , composer.lock.
  • , , .
  • ,

:

  • .json
  • - .
  • composer.lock .

composer.lock , , . composer.json dev-master.

- composer update , xdebug ( , ), composer. xdebug travis.

Composer, php "xdebug" . , "xdebug" php.ini, php PHP. "xdebug" 3 - .

https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer

+6

, , , before_install:

echo "memory_limit=520M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

travis. travis 3 2

+1

All Articles