Skip to content

Commit f3f2834

Browse files
authored
fix(gatsby-source-wordpress): fix failing test docker setup (#33163)
* log e.stack on errors * instead of cloning, curl the release zip of wp-graphql
1 parent fe2f09b commit f3f2834

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

integration-tests/gatsby-source-wordpress/__tests__/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ describe(`[gatsby-source-wordpress] Run tests on develop build`, () => {
8484
}
8585
} catch (e) {
8686
console.info(`Threw errors while mutating or unmutating WordPress`)
87+
console.error(e.stack)
8788
await new Promise(resolve => setTimeout(resolve, 1000))
8889
process.exit(1)
8990
}

integration-tests/gatsby-source-wordpress/docker/wordpress/install-wp-graphql-plugins.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ PLUGIN_DIR=${WP_CONTENT_DIR}/plugins
55
mkdir -p ${PLUGIN_DIR} && \
66

77
# WP GraphQL from GitHub release
8-
git clone --depth 1 -b ${WPGRAPHQL_VERSION} https://github.com/wp-graphql/wp-graphql.git ${PLUGIN_DIR}/wp-graphql && \
9-
10-
composer install --working-dir=${PLUGIN_DIR}/wp-graphql && \
8+
# example release url: https://github.com/wp-graphql/wp-graphql/releases/download/v1.3.7/wp-graphql.zip
9+
mkdir -p ${PLUGIN_DIR}/wp-graphql \
10+
&& curl -LO https://github.com/wp-graphql/wp-graphql/releases/download/${WPGRAPHQL_VERSION}/wp-graphql.zip \
11+
&& unzip ./wp-graphql.zip -d ${PLUGIN_DIR}/wp-graphql && \
1112

1213
# Install wp-gatsby using git, and apply a diff
1314
git clone --depth 1 -b ${WPGATSBY_VERSION} https://github.com/gatsbyjs/wp-gatsby.git ${PLUGIN_DIR}/wp-gatsby && \

0 commit comments

Comments
 (0)