Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Travis build failures due to PHP memory errors during composer install #561

@shrop

Description

@shrop

Travis builds are failing due to PHP out of memory errors during composer install. This has been resolved in Guardr (same issue) with the following change: https://github.com/guardrdistro/guardr-project/blob/8.x/.travis.yml#L27 See related issue for Guardr: https://www.drupal.org/project/guardr/issues/3094170. Credit to @joestewart for the work around this fix.

See: https://travis-ci.org/github/drupal-composer/drupal-project/jobs/673930113

$ composer --verbose install

> pre-update-cmd: DrupalProject\composer\ScriptHandler::checkComposerVersion

Loading composer repositories with package information

Updating dependencies (including require-dev)

PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///home/travis/.phpenv/versions/7.0.25/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///home/travis/.phpenv/versions/7.0.25/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.The command "composer --verbose install" failed and exited with 255 during .

Your build has been stopped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions