Skip to content
Snippets Groups Projects
Commit a4acf5c5 authored by Fran Garcia-Linares's avatar Fran Garcia-Linares
Browse files

Merge branch '3444714-LTS-support' into 'main'

POC  for LTS versions.

See merge request !209
parents 761d8bc5 7bd19549
No related branches found
No related tags found
No related merge requests found
Pipeline #273671 failed
......@@ -38,6 +38,9 @@ variables:
# The most recent, stable previous major version of Drupal.
CORE_PREVIOUS_STABLE: "9.5.11"
# The LTS previous major version of Drupal.
CORE_PREVIOUS_LTS: "9.5.11"
# The most recent security release in the previous major version of Drupal.
CORE_PREVIOUS_SECURITY: "9.5.11"
......
......@@ -205,6 +205,10 @@
if: '($OPT_IN_TEST_NEXT_MAJOR != "1" && $CI_COMMIT_REF_NAME != "project-update-bot-only") || $CORE_MAJOR_DEVELOPMENT == ""'
when: never
.opt-in-previous-lts-rule: &opt-in-previous-lts-rule
if: '$RUN_VARIANT_PREVIOUS_LTS != "1"'
when: never
.phpunit-tests-exist-rule: &phpunit-tests-exist-rule
- exists:
- "**/tests/**/*Test.php"
......@@ -401,6 +405,16 @@ composer (previous major):
DRUPAL_CORE: $CORE_PREVIOUS_STABLE
IGNORE_PROJECT_DRUPAL_CORE_VERSION: 1
composer (previous LTS):
extends: .composer-base
rules:
- *opt-in-previous-lts-rule
- when: always
variables:
PHP_VERSION: $CORE_PREVIOUS_PHP_MIN
DRUPAL_CORE: $CORE_PREVIOUS_LTS
IGNORE_PROJECT_DRUPAL_CORE_VERSION: 1
composer (next minor):
extends: .composer-base
rules:
......@@ -900,6 +914,15 @@ nightwatch (previous major):
needs:
- "composer (previous major)"
nightwatch (previous LTS):
extends: nightwatch
rules:
- *opt-in-previous-lts-rule
- *skip-nightwatch-rule
- *nightwatch-tests-exist-rule
needs:
- "composer (previous LTS)"
nightwatch (next minor):
allow_failure: true
extends: nightwatch
......@@ -1026,6 +1049,15 @@ phpunit (previous major):
needs:
- "composer (previous major)"
phpunit (previous LTS):
extends: phpunit
rules:
- *opt-in-previous-lts-rule
- *skip-phpunit-rule
- *phpunit-tests-exist-rule
needs:
- "composer (previous LTS)"
# Future versions, hence breaks may arrive at any time: failure is allowed.
phpunit (next minor):
allow_failure: true
......
......@@ -257,6 +257,11 @@ variables:
value: "0"
description: "Set to 1 to opt in testing against the maximum/latest supported version of PHP for the current stable version of Drupal."
RUN_VARIANT_PREVIOUS_LTS:
# @todo Change to 0
value: "1"
description: "(Experimental) Set to 1 to opt in testing against the previous LTS version of Drupal core."
################
# Gitlab templates repository and reference
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment