Skip to content

Commit

Permalink
Merge pull request #2625 from woocommerce/dev/fix-bluebird-dependency…
Browse files Browse the repository at this point in the history
…-issue

PHP Units tests: Symlink WC instead of moving the WC folder
  • Loading branch information
jorgemd24 authored Sep 26, 2024
2 parents 24044c5 + 2583950 commit 24c212e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ install_wc() {
if [ ! -f "$WC_VERSION_FILE" ]; then
# set up testing suite
rm -rf "$WC_DIR"
mkdir -p "$WC_DIR"
echo "Installing WooCommerce ($WC_VERSION)."
# Grab the necessary plugins.
WC_TMPDIR="${TMPDIR}/woocommerce-${WC_VERSION}"
rm -rf "${WC_TMPDIR}"
git clone --quiet --depth=1 --branch="${WC_VERSION}" https://github.com/woocommerce/woocommerce.git "${WC_TMPDIR}"
mv "${WC_TMPDIR}"/plugins/woocommerce/* "$WC_DIR"
touch "$WC_VERSION_FILE"

ln -s "${WC_TMPDIR}"/plugins/woocommerce "$WC_DIR"
touch "$WC_VERSION_FILE"

# Install composer for WooCommerce
cd "${WC_DIR}"
Expand Down

0 comments on commit 24c212e

Please sign in to comment.