Skip to content

Commit 1f85dd4

Browse files
committed
if 0.0-beta1 or 0.0-RC1, use WP_TEST_TAG=branches/0.0 and ARCHIVE_NAME is wordpress-0.0-beta1 or wordpress-0.0-RC1
1 parent 0ca5ec4 commit 1f85dd4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

templates/install-wp-tests.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ download() {
2525
fi
2626
}
2727

28-
if [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
28+
if [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+\-(beta|RC)[0-9]+$ ]]; then
29+
WP_BRANCH=${WP_VERSION%\-*}
30+
WP_TESTS_TAG="branches/$WP_BRANCH"
31+
32+
elif [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
2933
WP_TESTS_TAG="branches/$WP_VERSION"
3034
elif [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
3135
if [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0] ]]; then
@@ -47,7 +51,6 @@ else
4751
fi
4852
WP_TESTS_TAG="tags/$LATEST_VERSION"
4953
fi
50-
5154
set -ex
5255

5356
install_wp() {

0 commit comments

Comments
 (0)