From bb85f84da1c012168e3d293cd0ee2cffce03ea1c Mon Sep 17 00:00:00 2001 From: vendidero Date: Wed, 25 Sep 2024 10:48:57 +0200 Subject: [PATCH] Test install. --- tests/bin/install.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/bin/install.sh b/tests/bin/install.sh index 3b41f9b24..964725ef4 100755 --- a/tests/bin/install.sh +++ b/tests/bin/install.sh @@ -127,12 +127,12 @@ install_deps() { # get built plugin from .org # Get github version FILE="woocommerce.zip" - BRANCH="master" + BRANCH="trunk" - if [ "$WOO_VERSION" != "latest" ]; then - FILE="woocommerce.$WOO_VERSION.zip" - BRANCH=$WOO_VERSION - fi + if [ "$WOO_VERSION" != "latest" ]; then + FILE="woocommerce.$WOO_VERSION.zip" + BRANCH=$WOO_VERSION + fi # make sure paths are reset/cleared rm -rf "$WP_CORE_DIR/wp-content/plugins/woocommerce" @@ -142,10 +142,9 @@ install_deps() { unzip -q $TMPDIR/$FILE -d "$WP_CORE_DIR/wp-content/plugins" WORKING_DIR="$PWD" - rm -rf "$TMPDIR/woocommerce-git" git clone --branch $BRANCH --depth 1 "https://github.com/woocommerce/woocommerce.git" "$TMPDIR/woocommerce-git" - mv "$TMPDIR/woocommerce-git/tests" "$WP_CORE_DIR/wp-content/plugins/woocommerce" + mv "$TMPDIR/woocommerce-git/plugins/woocommerce/tests" "$WP_CORE_DIR/wp-content/plugins/woocommerce" } install_db() {