set memory limit for php container
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Philipp Lang 2023-10-18 18:30:18 +02:00
parent 026e7674dd
commit 7b6616c292
1 changed files with 4 additions and 3 deletions

View File

@ -29,10 +29,11 @@ steps:
- name: tests - name: tests
image: zoomyboy/adrema-base:latest image: zoomyboy/adrema-base:latest
commands: commands:
- php -d 'memory_limit=2G' artisan migrate - echo 'memory_limit = 2G' >> /usr/local/etc/php/conf.d/99-custom-php-memlimit.ini;
- php -d 'memory_limit=2G' artisan test - php artisan migrate
- php artisan test
- rm -f .env - rm -f .env
- vendor/bin/phpstan analyse --memory-limit=2G - vendor/bin/phpstan analyse
environment: environment:
APP_NAME: Scoutrobot APP_NAME: Scoutrobot
APP_KEY: APP_KEY: