Skip to content
Snippets Groups Projects
Commit 7668188f authored by jurgenhaas's avatar jurgenhaas
Browse files

docker/gitlab-drupal-ci#54 Remove composer downgrade and other composer plugin preparations

parent c56b5420
No related branches found
No related tags found
No related merge requests found
......@@ -30,51 +30,7 @@ include:
.preparecomposerplugins:
before_script:
# Downgrade composer if required
- if [[ -n $DOWNGRADE_COMPOSER ]]; then composer self-update --$DOWNGRADE_COMPOSER; fi
# Add the Drupal Vendor Hardening Composer Plugin.
# see https://github.com/drupal/core-vendor-hardening
- composer config --no-plugins --no-interaction allow-plugins.drupal/core-vendor-hardening true
# Disallowing plugin script.
- composer config --no-plugins --no-interaction allow-plugins.php-http/discovery true
# Allow PHPStan Extension Installer
- composer config --no-plugins --no-interaction allow-plugins.phpstan/extension-installer true
# Allow Composer Installer Extender
- composer config --no-plugins --no-interaction allow-plugins.oomphinc/composer-installers-extender true
# Allow Drupal Libraries Installer
- composer config --no-plugins --no-interaction allow-plugins.zodiacmedia/drupal-libraries-installer true
# Allow Drupal Dependency Quality Gate Composer Audit plugin
- if [[ "$IGNORE_COMPOSER_EXTENDED_AUDIT" == "0" ]]; then composer config --no-plugins --no-interaction allow-plugins.mxr576/ddqg-composer-audit true; fi
# Disallow Drupal Dependency Quality Gate Composer Audit plugin
- if [[ "$IGNORE_COMPOSER_EXTENDED_AUDIT" == "1" ]]; then composer config --no-plugins --no-interaction allow-plugins.mxr576/ddqg-composer-audit false; fi
# Composer audit should fail on abandonded packages found
- if [[ "$IGNORE_COMPOSER_ABANDONED_AUDIT" == "0" ]]; then composer config --no-plugins --no-interaction audit.abandoned fail; fi
# Composer audit should only report found abandonded packages
- if [[ "$IGNORE_COMPOSER_ABANDONED_AUDIT" == "1" ]]; then composer config --no-plugins --no-interaction audit.abandoned report; fi
# Check if lenient project is required
- LENIENT=$(jq '.config."allow-plugins"."mglaman/composer-drupal-lenient"' composer.json)
- if [[ "$LENIENT" == "true" ]]; then composer global config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true; composer global require mglaman/composer-drupal-lenient; fi
# Update composer audit CVEs
- sed -i "s/DDQG-unsupported-drupal-activitypub-1.0.0.0-alpha18/DDQG-unsupported-drupal-activitypub-1.0.0.0-alpha19/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-gin-3.0.0.0-RC12/DDQG-unsupported-drupal-gin-3.0.0.0-RC13/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-gin_toolbar-1.0.0.0-RC5/DDQG-unsupported-drupal-gin_toolbar-1.0.0.0-RC6/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-smart_date-4.1.0.0-RC7/DDQG-unsupported-drupal-smart_date-4.1.0.0-RC8/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-smart_date-4.1.0.0-RC8/DDQG-unsupported-drupal-smart_date-4.1.0.0-RC9/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-analog_digital_clock-10.1.1.0/DDQG-unsupported-drupal-analog_digital_clock-10.1.2.0/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-bpmn_io-2.0.0.0-beta1/DDQG-unsupported-drupal-bpmn_io-2.0.0.0-RC1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-eca-2.0.0.0-beta3/DDQG-unsupported-drupal-eca-2.0.0.0-RC1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-eca_metatag-2.0.0.0-beta1/DDQG-unsupported-drupal-eca_metatag-2.0.0.0-RC1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-eca_tamper-2.0.0.0-beta1/DDQG-unsupported-drupal-eca_tamper-2.0.0.0-RC1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-bpmn_io-2.0.0.0-rc1/DDQG-unsupported-drupal-bpmn_io-2.0.0.0-RC1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-eca-2.0.0.0-rc1/DDQG-unsupported-drupal-eca-2.0.0.0-RC1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-eca_metatag-2.0.0.0-rc1/DDQG-unsupported-drupal-eca_metatag-2.0.0.0-RC1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-eca_tamper-2.0.0.0-rc1/DDQG-unsupported-drupal-eca_tamper-2.0.0.0-RC1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-matomo-0.0.0.0-dev/DDQG-unsupported-drupal-matomo-2.0.0.0-alpha1/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-views_menu_children_filter-3.0.0.0-RC2/DDQG-unsupported-drupal-views_menu_children_filter-3.0.0.0-RC4/g" composer.json
- sed -i "s/DDQG-unsupported-drupal-login_destination-2.0.0.0-beta6/DDQG-unsupported-drupal-login_destination-2.0.0.0-beta7/g" composer.json
#- sed -i "s/###/###/g" composer.json
# Finally!!! Normalize composer.json by pretty printing it to ensure consistent structure.
# Disabled for now, since this sometimes creates an empty file: cat composer.json | jq -M . | tee composer.json >/dev/null
- echo "This got removed as it's now part of the default config."
.customreferences:
LanguageFiles: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment