Skip to content

Commit a8a025c

Browse files
authored
Merge pull request #186 from torounit/feature/install-wp-test-support-beta-rc
In the case of RC and Beta, use Branch for WP_TEST_TAG.
2 parents 4372117 + 1f85dd4 commit a8a025c

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)