Update Drupal 7 to 7.105

@see https://gitlab.com/tag1consulting/public/drupal/-/releases/7.105
This commit is contained in:
Mauricio Dinarte 2025-11-13 12:30:02 -06:00 committed by Janez Urevc
parent c76979e3d5
commit fb9ad88a0f
160 changed files with 276 additions and 782 deletions

View file

@ -9,6 +9,13 @@
# - DrupalSpoons
################
# Include packaging pipeline
include:
- project: "tag1consulting/d7es-ci-packaging"
ref: main
file:
- "templates/package_release/package_release.yml"
################
# Workflow
#
@ -39,6 +46,8 @@ workflow:
- if: $CI_PIPELINE_SOURCE == "web"
# Run if triggered from WebIDE
- if: $CI_PIPELINE_SOURCE == "webide"
# Run if tag pushed - required for packaging pipeline
- if: $CI_COMMIT_TAG
################
# Variables
@ -55,10 +64,12 @@ workflow:
variables:
_CONFIG_DOCKERHUB_ROOT: "drupalci"
_TARGET_PHP: "8.1"
_TARGET_PHP: "8.2"
CONCURRENCY: 15
GIT_DEPTH: "3"
COMPOSER_ALLOW_SUPERUSER: 1
SKIP_PHPSTAN: "1"
SKIP_PHPCS: "1"
################
# Stages
@ -87,6 +98,11 @@ stages:
################
- 🗜️ Test
# Used by packaging pipeline
- packaging
- upload
- release
#############
# Templates #
#############
@ -122,10 +138,10 @@ stages:
# Jobs define what scripts are actually executed in each stage.
################
'🧹 PHP Compatibility checks (PHPCS)':
'🧹 PHPCS':
stage: 🪄 Lint
variables:
PHPCS_PHP_VERSION: "5.6"
PHPCS_PHP_VERSION: "8.2"
KUBERNETES_CPU_REQUEST: "16"
interruptible: true
allow_failure: true
@ -146,6 +162,8 @@ stages:
reports:
codequality: phpcs-quality-report.json
rules:
- if: $SKIP_PHPCS == "1"
when: never
- <<: *run-on-mr
before_script:
- echo "{}" > composer.json
@ -159,66 +177,136 @@ stages:
- echo "If this list contains more files than what you changed, then you need to rebase your branch."
- vendor/bin/phpcs --basepath=$CI_PROJECT_DIR --report-\\Micheh\\PhpCodeSniffer\\Report\\Gitlab=phpcs-quality-report.json --report-full --report-summary --standard=PHPCompatibility --runtime-set testVersion $PHPCS_PHP_VERSION --extensions=php,module,inc,install,test,profile,theme $MODIFIED
# Default job.
'PHP 8.1 MySQL 5.7':
<<: *default-stage
'🧹 PHPStan':
stage: 🪄 Lint
variables:
_TARGET_PHP: "8.1"
_TARGET_DB: "mysql-5.7"
KUBERNETES_CPU_REQUEST: "16"
interruptible: true
rules:
- <<: *run-on-commit
- <<: *run-on-mr
- if: $SKIP_PHPSTAN != "1"
retry:
max: 2
when:
- unknown_failure
- api_failure
- stuck_or_timeout_failure
- runner_system_failure
- scheduler_failure
image:
name: $_CONFIG_DOCKERHUB_ROOT/php-$_TARGET_PHP-apache:production
script:
- composer install --optimize-autoloader
- if [ -n "$COMPOSER_UPDATE" ]; then
composer update --optimize-autoloader;
composer outdated;
fi
- vendor/bin/phpstan --version
# Rely on PHPStan caching to execute analysis multiple times without performance drawback.
# Output a copy in junit.
- php vendor/bin/phpstan analyze --error-format=gitlab > phpstan-quality-report.json || EXIT_CODE=$?
- php vendor/bin/phpstan analyze --no-progress --error-format=junit > phpstan-junit.xml || true
- |
if [ -n "$EXIT_CODE" ]; then
# Output a copy in plain text for human logs.
php vendor/bin/phpstan analyze --no-progress || true
# Generate a new baseline.
echo "Generating an PHPStan baseline file (available as job artifact)."
php vendor/bin/phpstan analyze --no-progress --generate-baseline=phpstan-baseline.php || true
exit $EXIT_CODE
fi
artifacts:
reports:
codequality: phpstan-quality-report.json
junit: phpstan-junit.xml
# Only store the baseline if the job fails.
when: on_failure
paths:
- phpstan-baseline.php
# Default job.
'PHP 5.6 MySQL 5.5':
<<: *default-stage
variables:
_TARGET_PHP: "5.6"
_TARGET_DB: "mysql-5.5"
'PHP 7.2 MySQL 5.7':
<<: *default-stage
variables:
_TARGET_PHP: "7.2"
_TARGET_DB: "mysql-5.7"
'PHP 7.4 MySQL 5.7':
<<: *default-stage
variables:
_TARGET_PHP: "7.4"
_TARGET_PHP: "7.4-ubuntu"
_TARGET_DB: "mysql-5.7"
'PHP 8.0 MySQL 5.7':
<<: *default-stage
variables:
_TARGET_PHP: "8.0"
_TARGET_DB: "mysql-5.7"
'PHP 8.2 MySQL 8':
<<: *default-stage
variables:
_TARGET_PHP: "8.2"
_TARGET_DB: "mysql-8"
'PHP 7.4 PostgreSQL 9.5':
<<: *default-stage
variables:
_TARGET_PHP: "7.4"
_TARGET_PHP: "7.4-ubuntu"
_TARGET_DB: "pgsql-9.5"
'PHP 8.1 PostgreSQL 14.1':
<<: *default-stage
variables:
_TARGET_PHP: "8.1"
_TARGET_DB: "pgsql-14.1"
'PHP 7.4 SQLite 3.27.0':
<<: *default-stage
variables:
_TARGET_PHP: "7.4"
_TARGET_PHP: "7.4-ubuntu"
_TARGET_DB: "sqlite-3"
'PHP 8.0 MySQL 5.7':
<<: *default-stage
variables:
_TARGET_PHP: "8.0-ubuntu"
_TARGET_DB: "mysql-5.7"
'PHP 8.1 MariaDB 10.3.22':
<<: *default-stage
variables:
_TARGET_PHP: "8.1"
_TARGET_PHP: "8.1-ubuntu"
_TARGET_DB: "mariadb-10.3.22"
'PHP 8.1 PostgreSQL 14.1':
<<: *default-stage
variables:
_TARGET_PHP: "8.1-ubuntu"
_TARGET_DB: "pgsql-14.1"
'PHP 8.2 MySQL 5.7':
<<: *default-stage
variables:
_TARGET_PHP: "8.2"
_TARGET_DB: "mysql-5.7"
'PHP 8.3 MySQL 8':
<<: *default-stage
variables:
_TARGET_PHP: "8.3-ubuntu"
_TARGET_DB: "mysql-8"
'PHP 8.3 MySQL 8.4':
<<: *default-stage
variables:
_TARGET_PHP: "8.2-ubuntu"
_TARGET_DB: "mysql-8.4"
'PHP 8.3 MySQL 9.4':
<<: *default-stage
variables:
_TARGET_PHP: "8.3-ubuntu"
_TARGET_DB: "mysql-9"
'PHP 8.3 MySQL 5.7':
<<: *default-stage
variables:
_TARGET_PHP: "8.3-ubuntu"
_TARGET_DB: "mysql-5.7"
rules:
- <<: *run-on-commit
- <<: *run-on-mr
'PHP 8.3 SQLite 3.27.0':
<<: *default-stage
variables:
_TARGET_PHP: "8.3-ubuntu"
_TARGET_DB: "sqlite-3"
'PHP 8.3 PostgreSQL 14.1':
<<: *default-stage
variables:
_TARGET_PHP: "8.3-ubuntu"
_TARGET_DB: "pgsql-14.1"
'PHP 8.4 MySQL 5.7':
<<: *default-stage
variables:
_TARGET_PHP: "8.4-ubuntu"
_TARGET_DB: "mysql-5.7"
PHP_INI_SCAN_DIR: "/var/www/html/subdirectory/.gitlab-ci"