Skip to content

Commit

Permalink
fix(gatsby-source-wordpress): fix failing test docker setup (#33163)
Browse files Browse the repository at this point in the history
* log e.stack on errors

* instead of cloning, curl the release zip of wp-graphql
  • Loading branch information
TylerBarnes committed Sep 13, 2021
1 parent fe2f09b commit f3f2834
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -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)
}
Expand Down
Expand Up @@ -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 && \
Expand Down

0 comments on commit f3f2834

Please sign in to comment.