Skip to content
Snippets Groups Projects

Draft: #3484055 MR 277 Do not run Max PHP jobs

Closed Jonathan Smith requested to merge issue/scheduler-3445052:3445052-mr277-do-not-run-max into 2.x
+ 40
19
@@ -4,8 +4,13 @@
# View these include files at https://git.drupalcode.org/project/gitlab_templates/
################
include:
- project: $_GITLAB_TEMPLATES_REPO
ref: $_GITLAB_TEMPLATES_REF
# - project: $_GITLAB_TEMPLATES_REPO
# ref: $_GITLAB_TEMPLATES_REF
# MR 277 Do not run max PHP variants
- project: issue/gitlab_templates-3484055
ref: 3484055-do-not-run-max-php
file:
- '/includes/include.drupalci.main.yml'
- '/includes/include.drupalci.variables.yml'
@@ -17,18 +22,34 @@ include:
variables:
OPT_IN_TEST_CURRENT: 1
OPT_IN_TEST_MAX_PHP: 1
OPT_IN_TEST_PREVIOUS_MINOR: 1
OPT_IN_TEST_PREVIOUS_MAJOR: 1
OPT_IN_TEST_NEXT_MINOR: 1
OPT_IN_TEST_NEXT_MAJOR: 1
OPT_IN_TEST_DRUPAL9: 1
OPT_IN_TEST_DRUPAL8: 1
RUN_JOB_UPGRADE_STATUS: 1
OPT_IN_TEST_PREVIOUS_MINOR: 0
OPT_IN_TEST_PREVIOUS_MAJOR: 0
OPT_IN_TEST_NEXT_MINOR: 0
OPT_IN_TEST_NEXT_MAJOR: 0
OPT_IN_TEST_DRUPAL9: 0
OPT_IN_TEST_DRUPAL8: 0
RUN_JOB_UPGRADE_STATUS: 0
# If the MR has changes to a file that is retrieved via curl then specify these two CURL_TEMPLATES variables to match the repo and ref above.
# Better to have any value here, even if it does not match the values above, because any MR is likely to be more up-to-date than 'default-ref'.
_CURL_TEMPLATES_REPO: issue/gitlab_templates-3484055
_CURL_TEMPLATES_REF: 3484055-do-not-run-max-php
SKIP_COMPOSER_LINT: 1
SKIP_ESLINT: 1
SKIP_STYLELINT: 1
SKIP_PHPCS: 1
SKIP_CSPELL: 1
SKIP_PHPSTAN: 0
SKIP_PHPUNIT: 0
SKIP_NIGHTWATCH: 1
SKIP_TEST_ONLY_CHANGES: 1
_SHOW_ENVIRONMENT_VARIABLES: 1
_PHPUNIT_CONCURRENT: 1
_PHPUNIT_TESTGROUPS: ''
_CSPELL_EXTRA: '--dot'
# Override what will be done in MR276
CORE_PHP_NEXT: 8.4
################
# Job overrides
@@ -86,11 +107,10 @@ variables:
- COLUMNS=120 composer show | grep -E '\/(core |rules|commerce|entity|inline_entity_form|workbench|drush|devel_generate|address)'
composer (max PHP version):
# Using when: manual needs 'allow failure: true' otherwise the overall pipeline status shows 'blocked'
rules:
- !reference [ .opt-in-max-php-rule ]
- when: manual
allow_failure: true
before_script:
- echo -e "_TARGET_PHP=$_TARGET_PHP, CORE_PHP_MIN=$CORE_PHP_MIN, CORE_PHP_MAX=$CORE_PHP_MAX, CORE_PHP_NEXT=$CORE_PHP_NEXT\nPHP_VERSION=$PHP_VERSION"
variables:
PHP_VERSION: $CORE_PHP_NEXT
composer (previous minor):
rules:
@@ -164,6 +184,8 @@ phpstan:
after_script:
- test -f phpstan.neon && echo "=== This is phpstan.neon ===" && cat phpstan.neon
- php $CI_PROJECT_DIR/scripts/phpstan-baseline-summary.php phpstan-baseline-to-fix.neon
variables:
PHP_VERSION: $CORE_PHP_NEXT
# -------------------------------- TEST ----------------------------------------
@@ -173,12 +195,7 @@ phpunit:
# Run test groups in parallel. This also speeds up identification of failing tests.
# @todo put back "scheduler_drush" when https://www.drupal.org/i/3359998 is solved.
- _MATRIX_VALUE:
- scheduler
- scheduler_api
# - scheduler_drush
- scheduler_js
- scheduler_kernel
- scheduler_rules_integration
before_script:
# If any variation also needs a before_script then add - !reference [phpunit, before_script] to include this script.
- *show-variables
@@ -206,6 +223,10 @@ phpunit:
- if [[ $DRUPAL_CORE =~ ^(\^)?(8.9|9.5|10.2) ]]; then patch -p1 < tests/3451750-strict-config-schema.patch; fi
- echo "End of before_script _PHPUNIT_CONCURRENT=$_PHPUNIT_CONCURRENT _PHPUNIT_EXTRA=$_PHPUNIT_EXTRA"
phpunit (max PHP version):
variables:
PHP_VERSION: $CORE_PHP_NEXT
phpunit (next minor):
variables:
# Use core ignoreFile to show deprecations. This is only used when $_PHPUNIT_CONCURRENT=1 so make sure that is also set.
Loading