Skip to content

Commit

Permalink
- Updating wc test installation script.
Browse files Browse the repository at this point in the history
  • Loading branch information
message-dimke committed Sep 16, 2024
1 parent 049515f commit 359136f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,20 @@ install_wc() {
# Grab the necessary plugins.
if [ $WC_VERSION == 'trunk' ]; then
rm -rf "$TMPDIR"/woocommerce-trunk
git clone --quiet --depth=1 --branch="$LATEST_WC_VERSION" https://github.com/woocommerce/woocommerce.git "${TMPDIR}/woocommerce-trunk"
git clone --quiet --depth=1 --branch="$LATEST_WC_VERSION" https://github.com/woocommerce/woocommerce.git "$TMPDIR"/woocommerce-trunk

# Install composer for WooCommerce
cd "$TMPDIR"/woocommerce-trunk/plugins/woocommerce
composer install --ignore-platform-reqs --no-interaction --no-dev

# Symlink woocommerce plugin
mv "$TMPDIR"/woocommerce-trunk/plugins/woocommerce/* "$WC_DIR"
else
echo "Test with specified WooCommerce version ${WC_VERSION} is not yet supported."
exit 1
fi

# Install composer for WooCommerce
cd "${WC_DIR}"
composer install --ignore-platform-reqs --no-interaction --no-dev

cd "$WC_DIR"
# Generate feature config for WooCommerce
GENERATE_FEATURE_CONFIG=bin/generate-feature-config.php
if [ -f $GENERATE_FEATURE_CONFIG ]; then
Expand Down

0 comments on commit 359136f

Please sign in to comment.