Skip to content
Snippets Groups Projects

#3471235 Investigate dependencies job keyword

Merged #3471235 Investigate dependencies job keyword
All threads resolved!
Merged Jonathan Smith requested to merge issue/gitlab_templates-3471235:3471235-dependencies into main
All threads resolved!
Files
2
@@ -72,6 +72,15 @@
echo -e "\e[0Ksection_end:`date +%s`:show_env_vars\r\e[0K"
fi
# Check the internal composer end code. This is necessary in case allow_failure:true is set in the Composer job or one of its variants.
.check-composer-end-code: &check-composer-end-code
- |
echo "COMPOSER_END_CODE=$COMPOSER_END_CODE"
if [ "$COMPOSER_END_CODE" != "0" ]; then
printf "$DIVIDER\nERROR: The pre-requisite Composer job did not complete successfully.\nCheck the log of that job for details.$DIVIDER\n"
exit 1;
fi;
# Separately install and configure lenient plugin, if required.
.add-composer-drupal-lenient: &add-composer-drupal-lenient
- |
@@ -357,7 +366,8 @@ stages:
else
echo "{}" > composer.json
fi
- php expand_composer_json.php
- php expand_composer_json.php || EXPAND_COMPOSER_EXIT_CODE=$?
- if [[ "$EXPAND_COMPOSER_EXIT_CODE" != "" ]]; then echo "EXPAND_COMPOSER_EXIT_CODE=$EXPAND_COMPOSER_EXIT_CODE"; exit $EXPAND_COMPOSER_EXIT_CODE; fi
- composer install $COMPOSER_EXTRA
- rm expand_composer_json.php
- *require-drush
@@ -378,6 +388,8 @@ stages:
- touch $_WEB_ROOT/core/.env
# Display any deprecation warning which may have been set.
- printf "$_DEPRECATION_MESSAGE"
# Set an internal composer end code, to halt subsequent jobs even when allow_failure: true is set.
- echo "COMPOSER_END_CODE=0" >> build.env
composer:
extends: .composer-base
@@ -532,6 +544,7 @@ phpcs:
needs:
- composer
script:
- *check-composer-end-code
- *calculate-gitlab-ref
# If present, use PHPStan configuration neon file.
- |
@@ -605,6 +618,8 @@ phpstan (next major):
- *php-files-exist-rule
needs:
- "composer (next major)"
# @TODO Delete 'allow_failure:true' in MR242
allow_failure: true
script:
- *amend-core-requirements-drupal-11
- !reference [phpstan, script]
@@ -851,6 +866,7 @@ cspell:
DRUPAL_NIGHTWATCH_IGNORE_DIRECTORIES: node_modules,vendor,.*,sites/*/files,sites/*/private,sites/simpletest
DRUPAL_NIGHTWATCH_OUTPUT: reports/nightwatch
script:
- *check-composer-end-code
- *setup-webserver
- *simpletest-db
- export DRUPAL_TEST_DB_URL=$SIMPLETEST_DB
@@ -982,6 +998,7 @@ nightwatch (next major):
variables:
SYMFONY_DEPRECATIONS_HELPER: "disabled"
script:
- *check-composer-end-code
- *show-environment-variables
- *setup-webserver
- *simpletest-db
Loading