Skip to content

Commit

Permalink
Increase php memory to 2G during TravisCI Packaging (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
ho-man-chan authored Apr 14, 2021
1 parent e7e40fe commit 8a2f66c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a2f66c

Please sign in to comment.