Skip to content

Commit

Permalink
Merge pull request #467 from woocommerce/dev/fix-blueprint-missing-de…
Browse files Browse the repository at this point in the history
…pendency

Symlink WC for PHP unit tests
  • Loading branch information
jorgemd24 authored Sep 26, 2024
2 parents afe58bd + eb65059 commit 2df289e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/unit-tests-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,12 @@ install_wc() {
local WC_VERSION_FILE="${WC_DIR}/version-"$(echo $WC_VERSION | sed -e "s/\//-/")
if [ ! -f "$WC_VERSION_FILE" ]; then
rm -rf "$WC_DIR"
mkdir -p "$WC_DIR"
echo "Installing WooCommerce ($WC_VERSION)."

local 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"
ln -s "${WC_TMPDIR}"/plugins/woocommerce "$WC_DIR"
touch "$WC_VERSION_FILE"

# Install composer for WooCommerce
Expand Down

0 comments on commit 2df289e

Please sign in to comment.