From 5af1a572ba8ebe5533ba0e30028fc207375a7b07 Mon Sep 17 00:00:00 2001 From: Tyler Barnes Date: Mon, 13 Sep 2021 12:36:28 -0700 Subject: [PATCH 1/2] log e.stack on errors --- integration-tests/gatsby-source-wordpress/__tests__/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/integration-tests/gatsby-source-wordpress/__tests__/index.js b/integration-tests/gatsby-source-wordpress/__tests__/index.js index fd7b064f8fb5d..fcb793a06d161 100644 --- a/integration-tests/gatsby-source-wordpress/__tests__/index.js +++ b/integration-tests/gatsby-source-wordpress/__tests__/index.js @@ -84,6 +84,7 @@ describe(`[gatsby-source-wordpress] Run tests on develop build`, () => { } } catch (e) { console.info(`Threw errors while mutating or unmutating WordPress`) + console.error(e.stack) await new Promise(resolve => setTimeout(resolve, 1000)) process.exit(1) } From 8eb99e2f71dccd4f3293dade8ec259047ab1d429 Mon Sep 17 00:00:00 2001 From: Tyler Barnes Date: Mon, 13 Sep 2021 13:27:48 -0700 Subject: [PATCH 2/2] instead of cloning, curl the release zip of wp-graphql --- .../docker/wordpress/install-wp-graphql-plugins.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integration-tests/gatsby-source-wordpress/docker/wordpress/install-wp-graphql-plugins.sh b/integration-tests/gatsby-source-wordpress/docker/wordpress/install-wp-graphql-plugins.sh index 83e4e1492935e..c02e314e42e84 100755 --- a/integration-tests/gatsby-source-wordpress/docker/wordpress/install-wp-graphql-plugins.sh +++ b/integration-tests/gatsby-source-wordpress/docker/wordpress/install-wp-graphql-plugins.sh @@ -5,9 +5,10 @@ PLUGIN_DIR=${WP_CONTENT_DIR}/plugins mkdir -p ${PLUGIN_DIR} && \ # WP GraphQL from GitHub release -git clone --depth 1 -b ${WPGRAPHQL_VERSION} https://github.com/wp-graphql/wp-graphql.git ${PLUGIN_DIR}/wp-graphql && \ - -composer install --working-dir=${PLUGIN_DIR}/wp-graphql && \ +# example release url: https://github.com/wp-graphql/wp-graphql/releases/download/v1.3.7/wp-graphql.zip +mkdir -p ${PLUGIN_DIR}/wp-graphql \ + && curl -LO https://github.com/wp-graphql/wp-graphql/releases/download/${WPGRAPHQL_VERSION}/wp-graphql.zip \ + && unzip ./wp-graphql.zip -d ${PLUGIN_DIR}/wp-graphql && \ # Install wp-gatsby using git, and apply a diff git clone --depth 1 -b ${WPGATSBY_VERSION} https://github.com/gatsbyjs/wp-gatsby.git ${PLUGIN_DIR}/wp-gatsby && \