I am trying to run PHP CS on a simple laravel app. It fails with following message when it tries to install composer scripts
<span>Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 32 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Rule2Literals.php on line 48</span>
My pipeline conf
options:docker: truesize: 2xpipelines:default:- step:environment:COMPOSER_MEMORY_LIMIT: 3Gscript:- php -r "echo ini_get('memory_limit').PHP_EOL;"- composer install --no-scripts#- mkdir ./test-reports#- touch ./test-reports/phpcs.xml#- vendor/bin/phpcs --report=junit --report-file=./test-reports/phpcs.xml app- vendor/bin/phpmd app xml codesize,unusedcode,naming,cleancode,design,unusedcode --report-file=./test-reports/phpmd.xml- vendor/bin/phpunit --log-junit ./test-reports/junit.xml
@undPohlen Was able to solve the problem using Multi stage build
https://dev.to/nsaqib/setting-up-bitbucket-pipelines-for-laravel-4c39
Thanks!
I also got it working with `COMPOSER_MEMORY_LIMIT=-1 composer install`
It looks like you're new here. Sign in or register to get started.