Skip to content

Commit

Permalink
Test install.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisnissle committed Sep 25, 2024
1 parent 57346e9 commit bb85f84
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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() {
Expand Down

0 comments on commit bb85f84

Please sign in to comment.