Skip to content
Snippets Groups Projects
Commit f7bd4a89 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 67272277 784101af
No related branches found
No related tags found
No related merge requests found
Pipeline #177039 passed
Pipeline: keycdn

#177041

    Pipeline: decoupled_pages

    #177040

      ......@@ -17,6 +17,9 @@ variables:
      # The most recent, stable version of Drupal.
      CORE_STABLE: "10.2.6"
      # The LTS version of Drupal.
      CORE_LTS: "10.2.6"
      # The most recent security release in the latest major version of Drupal.
      CORE_SECURITY: "10.2.2"
      ......@@ -38,6 +41,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"
      ......
      ......@@ -187,6 +187,14 @@
      if: '$OPT_IN_TEST_NEXT_MAJOR != "1"'
      when: never
      .opt-in-current-lts-rule: &opt-in-current-lts-rule
      if: '$OPT_IN_TEST_CURRENT_LTS != "1"'
      when: never
      .opt-in-previous-lts-rule: &opt-in-previous-lts-rule
      if: '$OPT_IN_TEST_PREVIOUS_LTS != "1"'
      when: never
      .phpunit-tests-exist-rule: &phpunit-tests-exist-rule
      - exists:
      - tests/**/*Test.php
      ......@@ -358,6 +366,15 @@ composer (max PHP version):
      variables:
      PHP_VERSION: $CORE_PHP_MAX
      composer (current LTS):
      extends: .composer-base
      rules:
      - *opt-in-current-lts-rule
      - when: always
      variables:
      DRUPAL_CORE: $CORE_LTS
      IGNORE_PROJECT_DRUPAL_CORE_VERSION: 1
      composer (previous minor):
      extends: .composer-base
      rules:
      ......@@ -377,6 +394,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:
      ......@@ -778,6 +805,15 @@ nightwatch (max PHP version):
      needs:
      - "composer (max PHP version)"
      nightwatch (current LTS):
      extends: nightwatch
      rules:
      - *opt-in-current-lts-rule
      - *skip-nightwatch-rule
      - *nightwatch-tests-exist-rule
      needs:
      - "composer (current LTS)"
      nightwatch (previous minor):
      extends: nightwatch
      rules:
      ......@@ -796,6 +832,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
      ......@@ -904,6 +949,15 @@ phpunit (max PHP version):
      needs:
      - "composer (max PHP version)"
      phpunit (current LTS):
      extends: phpunit
      rules:
      - *opt-in-current-lts-rule
      - *skip-phpunit-rule
      - *phpunit-tests-exist-rule
      needs:
      - "composer (current LTS)"
      phpunit (previous minor):
      extends: phpunit
      rules:
      ......@@ -922,6 +976,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
      ......
      ......@@ -222,6 +222,16 @@ 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."
      OPT_IN_TEST_CURRENT_LTS:
      # @todo Change to 0
      value: "1"
      description: "Set to 1 to opt in testing against the current LTS version of Drupal core."
      OPT_IN_TEST_PREVIOUS_LTS:
      # @todo Change to 0
      value: "1"
      description: "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