Skip to content
Snippets Groups Projects
Commit 46452662 authored by Adam G-H's avatar Adam G-H Committed by Adam G-H
Browse files

Issue #3492006 by phenaproxima: Remove unpacking kludge from our CI build process

parent 6be4129e
No related branches found
No related tags found
No related merge requests found
......@@ -93,36 +93,6 @@ build project:
- composer create-project drupal/cms $BUILD_DIR --stability=dev
# Delete all `.git` directories.
- find $BUILD_DIR -depth -type d -name '.git' -exec rm -r -f {} ';'
# ------
# ------ BEGIN UNPACKING ------
# ------
# Until they are available on Packagist, the various components need to NOT be managed
# by Composer at all. We should remove all of this before general release.
- cd $BUILD_DIR
# Use the patches lock file to define the patches.
- cp -f patches.lock.json patches.json
# Install and enable the unpack plugin.
- composer config repositories.unpack vcs https://gitlab.ewdev.ca/yonas.legesse/drupal-recipe-unpack.git
- composer config allow-plugins.ewcomposer/unpack true
- composer require ewcomposer/unpack:dev-master
# Unpack all our recipes. This needs to be done separately from removal, since
# recipes can depend on other recipes.
- RECIPES=$(find $CI_PROJECT_DIR/recipes -mindepth 1 -maxdepth 1 -type d -printf "drupal/%P\n")
- for name in $RECIPES; do composer unpack $name; done
# Remove the recipes, the unpacker, the installer, and the Olivero subtheme.
- for name in $RECIPES; do composer remove --quiet --no-update $name; done
- composer remove ewcomposer/unpack drupal/drupal_cms_installer drupal/drupal_cms_olivero
- composer config allow-plugins.ewcomposer/unpack false
- composer config --unset repositories.unpack
# Ensure everything we removed is physically present in the build.
- cp -R $CI_PROJECT_DIR/recipes/* recipes
- cd $_WEB_ROOT
- mkdir -p themes
- mv $CI_PROJECT_DIR/drupal_cms_olivero themes
- cd $CI_PROJECT_DIR
# ------
# ------ END UNPACKING ------
# ------
# Speed up the installer by pre-parsing all of the recipes available in the installer
# and storing them in a serialized file format.
- cd $BUILD_DIR
......
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