From 8a2f66cec3a78ea5af866df396e3806ed090333c Mon Sep 17 00:00:00 2001 From: Ho Man Chan Date: Wed, 14 Apr 2021 15:39:43 -0400 Subject: [PATCH 1/4] 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 From 34d0ef2fdf07ad9937bce97fcbf5dd3280c85ae8 Mon Sep 17 00:00:00 2001 From: Ho Man Chan Date: Wed, 26 May 2021 00:03:44 -0400 Subject: [PATCH 2/4] Fix github action wordpress versioning for Pressbooks --- .github/workflows/.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/.pipeline.yml b/.github/workflows/.pipeline.yml index 0b73c9a67..933a74a1d 100644 --- a/.github/workflows/.pipeline.yml +++ b/.github/workflows/.pipeline.yml @@ -13,7 +13,7 @@ jobs: matrix: php: [ 7.3 ] os: [ ubuntu-18.04 ] - wordpress: [ 5.6.2, 5.7.2 ] + wordpress: [ 5.7.2, latest] name: Test - PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }} From 2cfba749b02fdcd7dc641cbc0b6658e6ad85fbbe Mon Sep 17 00:00:00 2001 From: Ho Man Chan Date: Tue, 6 Jul 2021 22:47:22 -0400 Subject: [PATCH 3/4] Update prepare build to use npm build --- .github/workflows/.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/.pipeline.yml b/.github/workflows/.pipeline.yml index 4f8343c2f..071aa0c7f 100644 --- a/.github/workflows/.pipeline.yml +++ b/.github/workflows/.pipeline.yml @@ -94,7 +94,7 @@ jobs: chmod +x wp-cli.phar mv wp-cli.phar /usr/local/bin/wp wp package install wp-cli/dist-archive-command - npm run build:production + npm run build composer install --no-dev --optimize-autoloader cd .. wp dist-archive $GITHUB_REPO_SLUG $GITHUB_BUILD_PATH/$GITHUB_REPO_SLUG-$GITHUB_TAG.zip From a6b53383874c525df4f88e1843b2d54e85f1531c Mon Sep 17 00:00:00 2001 From: Ho Man Chan Date: Tue, 6 Jul 2021 23:05:47 -0400 Subject: [PATCH 4/4] Update github workflow pipeline to use node 14 --- .github/workflows/.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/.pipeline.yml b/.github/workflows/.pipeline.yml index 071aa0c7f..4ad723cdd 100644 --- a/.github/workflows/.pipeline.yml +++ b/.github/workflows/.pipeline.yml @@ -28,7 +28,7 @@ jobs: - name: Install Node uses: actions/setup-node@v2 with: - node-version: '10' + node-version: '14' - name: Install OS dependencies run: |