From 8a2f66cec3a78ea5af866df396e3806ed090333c Mon Sep 17 00:00:00 2001 From: Ho Man Chan Date: Wed, 14 Apr 2021 15:39:43 -0400 Subject: [PATCH] Increase php memory to 2G during TravisCI Packaging (#756) --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b3aaede04..0c5902fe9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,12 +53,13 @@ after_success: - bash <(curl -s https://codecov.io/bash) before_deploy: - export TRAVIS_PROJECT_SLUG="$(basename $TRAVIS_BUILD_DIR)" +- export COMPOSER_MEMORY_LIMIT=-1 - curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar - chmod +x wp-cli.phar - sudo mv wp-cli.phar /usr/local/bin/wp -- wp package install wp-cli/dist-archive-command +- php -d memory_limit=2G "$(which wp)" package install wp-cli/dist-archive-command - npm run build:production -- composer install --no-dev --optimize-autoloader +- php -d memory_limit=2G "$(which composer)" install --no-dev --optimize-autoloader - cd ../ - wp dist-archive $TRAVIS_PROJECT_SLUG $TRAVIS_BUILD_DIR/$TRAVIS_PROJECT_SLUG-$TRAVIS_TAG.zip - cd $TRAVIS_BUILD_DIR