فهرست منبع

setup memory limit for CI

Olivier Massot 1 سال پیش
والد
کامیت
d97b52bea4
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      tests/ci_docker_install.sh

+ 5 - 1
tests/ci_docker_install.sh

@@ -60,5 +60,9 @@ php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('ins
 php composer-setup.php
 php -r "unlink('composer-setup.php'); unlink('installer.sig');"
 
+# Config php
+echo "memory_limit=2096M" > /usr/local/etc/php/conf.d/memory-limit.ini
+
 # Install modules
-HOST=ci php -d memory_limit=-1 composer.phar install --no-interaction --ignore-platform-reqs
+HOST=ci php composer.phar install --no-interaction --ignore-platform-reqs
+