From d5233c6c91df039d2088110cf0d80b3d3f70f018 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Fri, 27 Dec 2024 15:28:25 +0100 Subject: [PATCH] docker/gitlab-drupal-ci#55 Optimize autoloader in deployment pipelines --- test-and-deploy.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test-and-deploy.yml b/test-and-deploy.yml index a6a5408..d28a105 100644 --- a/test-and-deploy.yml +++ b/test-and-deploy.yml @@ -304,8 +304,8 @@ Debug: - !reference [.preparecomposerplugins, before_script] script: - /usr/local/bin/update-env - - composer install --no-interaction --no-progress --no-dev - - composer show --path drupal/core-vendor-hardening >/dev/null 2>&1 || composer require --update-no-dev --no-interaction --no-progress drupal/core-vendor-hardening + - composer install --no-interaction --no-progress --no-dev --optimize-autoloader + - composer show --path drupal/core-vendor-hardening >/dev/null 2>&1 || composer require --update-no-dev --no-interaction --no-progress --optimize-autoloader drupal/core-vendor-hardening artifacts: name: build-prod when: always @@ -329,8 +329,8 @@ Debug: LAKEDROPS_BUILD_NG: 'yes' COMPOSE_PROJECT_NAME: drupal_$COMPOSE_PROJECT_NAME script: - - composer show --path lakedrops/drupal-environment >/dev/null 2>&1 || composer require --update-no-dev --no-interaction --no-progress lakedrops/drupal-environment - - composer show --path lakedrops/docker4drupal >/dev/null 2>&1 || composer require --update-no-dev --no-interaction --no-progress lakedrops/docker4drupal + - composer show --path lakedrops/drupal-environment >/dev/null 2>&1 || composer require --update-no-dev --no-interaction --no-progress --optimize-autoloader lakedrops/drupal-environment + - composer show --path lakedrops/docker4drupal >/dev/null 2>&1 || composer require --update-no-dev --no-interaction --no-progress --optimize-autoloader lakedrops/docker4drupal - composer lakedrops:config - composer lakedrops:docker4drupal artifacts: @@ -352,8 +352,8 @@ Debug: - !reference [.preparecomposerplugins, before_script] script: # Run the following twice to ensure new patches get applied. - - composer install --no-interaction --no-progress - - composer install --no-interaction --no-progress + - composer install --no-interaction --no-progress --optimize-autoloader + - composer install --no-interaction --no-progress --optimize-autoloader - composer lakedrops:scaffold --no-interaction - composer lakedrops:docker4drupal --no-interaction - docker compose pull --quiet @@ -723,7 +723,7 @@ Debug: - if [[ $EC -ne 0 ]]; then DOUPDATE=1; fi - rm /tmp/test.log >/dev/null 2>&1 || true - if [[ $DOUPDATE -eq 0 ]]; then exit 0; fi - - composer update --with-all-dependencies --no-interaction --no-progress --no-dev + - composer update --with-all-dependencies --no-interaction --no-progress --no-dev --optimize-autoloader only: variables: - $CHECKUPDATES -- GitLab