Skip to content

Commit 2204f3c

Browse files
Merge pull request #175 from wp-cli/add-latest-version-support
Add latest version support to behat tags
2 parents c4569dd + ee5785e commit 2204f3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ then
88
phpunit
99
fi
1010

11+
if [ $WP_VERSION = "latest" ]; then
12+
export WP_VERSION=$(curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r ".offers[0].current")
13+
fi
14+
1115
# Run the functional tests
1216
BEHAT_TAGS=$(php utils/behat-tags.php)
1317
behat --format progress $BEHAT_TAGS --strict

0 commit comments

Comments
 (0)