File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ set -e
2828
2929BUILD_DIR=" $( pwd) "
3030
31+ # An archive supplied through WP_CLI_TEST_CORE_ZIP is usually a development build,
32+ # which has no version to resolve against WordPress.org. Treat it as trunk, so that
33+ # no version specific scenarios are skipped. Set WP_VERSION explicitly when the
34+ # archive holds a specific release.
35+ if [ -z " $WP_VERSION " ] && [ -n " $WP_CLI_TEST_CORE_ZIP " ]; then
36+ export WP_VERSION=" trunk"
37+ fi
38+
3139if [ -z " $WP_VERSION " ]; then
3240 export WP_VERSION=" latest"
3341fi
Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ set -e
2828
2929export BUILD_DIR=" ${TRAVIS_BUILD_DIR:- $(pwd)} "
3030
31+ # An archive supplied through WP_CLI_TEST_CORE_ZIP is usually a development build,
32+ # which has no version to resolve against WordPress.org. Treat it as trunk, so that
33+ # no version specific scenarios are skipped. Set WP_VERSION explicitly when the
34+ # archive holds a specific release.
35+ if [ -z " $WP_VERSION " ] && [ -n " $WP_CLI_TEST_CORE_ZIP " ]; then
36+ export WP_VERSION=" trunk"
37+ fi
38+
3139if [ -z " $WP_VERSION " ]; then
3240 export WP_VERSION=" latest"
3341fi
Original file line number Diff line number Diff line change @@ -30,6 +30,15 @@ if [ -z "$BUILD_DIR" ]; then
3030 export BUILD_DIR=" ${GITHUB_WORKSPACE:- $(pwd)} "
3131fi
3232
33+ # An archive supplied through WP_CLI_TEST_CORE_ZIP is usually a development build,
34+ # which has no version to resolve against WordPress.org. Treat it as trunk, so that
35+ # no version specific scenarios are skipped. Set WP_VERSION explicitly when the
36+ # archive holds a specific release. Older versions of wp-cli/wp-cli-tests resolve
37+ # an unset WP_VERSION to the latest release, so this cannot be left to them.
38+ if [ -z " $WP_VERSION " ] && [ -n " $WP_CLI_TEST_CORE_ZIP " ]; then
39+ export WP_VERSION=" trunk"
40+ fi
41+
3342if [ -z " $TEST_PACKAGE " -o " $TEST_PACKAGE " == " none" ]; then
3443 echo " Skipping feature tests completely."
3544 exit 0
You can’t perform that action at this time.
0 commit comments