From f28b1ae91d05479529a86d33b4ff0e4087408792 Mon Sep 17 00:00:00 2001 From: Daniel Bosen Date: Thu, 12 Mar 2020 10:59:12 +0100 Subject: [PATCH] Fetch most recent release. (#22) --- configuration.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration.sh b/configuration.sh index a126a59..c532e0c 100644 --- a/configuration.sh +++ b/configuration.sh @@ -60,8 +60,8 @@ DRUPAL_TESTING_TEST_DEPRECATION=${DRUPAL_TESTING_TEST_DEPRECATION:-test -f phpst DRUPAL_TESTING_PHPCS_IGNORE_PATTERN=${DRUPAL_TESTING_PHPCS_IGNORE_PATTERN:-*/vendor/*,*/core/*,*/autoload.php,*.md} # The drupal version to test against. This can be any valid composer version string, but only drupal versions greater 8.6 -# are supported. -DRUPAL_TESTING_DRUPAL_VERSION=${DRUPAL_TESTING_DRUPAL_VERSION:-"*"} +# are supported. By default, we use the most recent stable version. +DRUPAL_TESTING_DRUPAL_VERSION=${DRUPAL_TESTING_DRUPAL_VERSION:-$(git ls-remote --tags --sort=-version:refname https://github.com/drupal/core.git | grep -E -o '[0-9]+\.[0-9]\.[0-9]+$' | head -n1)} # The base directory for all generated files. Into this diretory will be drupal installed and temp files stored. # This directory gets removed after successful tests.