Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_cms-3494246
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal_cms-3494246
Commits
46452662
Commit
46452662
authored
1 month ago
by
Adam G-H
Committed by
Adam G-H
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3492006
by phenaproxima: Remove unpacking kludge from our CI build process
parent
6be4129e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-30
0 additions, 30 deletions
.gitlab-ci.yml
with
0 additions
and
30 deletions
.gitlab-ci.yml
+
0
−
30
View file @
46452662
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment