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

Issue #3509504 by phenaproxima, pameeela, jurgenhaas, drumm, tim.plunkett:...

Issue #3509504 by phenaproxima, pameeela, jurgenhaas, drumm, tim.plunkett: Provide a package for releases without a separate docroot for shared hosting
parent 6e800e7a
Branches
No related tags found
1 merge request!532Add a cPanel template CI job
Pipeline #517611 failed
......@@ -3,6 +3,7 @@
## Description: Tags a version of Drupal CMS and updates version constraints.
## Usage: tag VERSION
## Example: "ddev tag 1.2.3"
## Example: "ddev tag 1.2.3 test"
# Abort this script if any one step fails.
set -e
......@@ -13,7 +14,18 @@ if [ -z "$VERSION" ]; then
exit 1
fi
COMPONENTS=$(find $PWD -maxdepth 2 -type d -name 'drupal_cms_*' -or -name project_template)
# Create the cPanel project template.
rm -r -f cpanel_template
cp -R -f project_template cpanel_template
cd cpanel_template
sed -i 's/"web\//"\.\//g' composer.json
sed -i 's/ --docroot=web//' README.md
composer config name drupal/cms_cpanel
mv web/* .
rm -r web
cd ..
COMPONENTS=$(find $PWD -maxdepth 2 -type d -name 'drupal_cms_*' -or -name '*_template')
# Set all components' versions explicitly.
for dir in $COMPONENTS; do
......
......@@ -54,6 +54,8 @@ default:
URL: 'git@git.drupal.org:project/drupal_cms_olivero.git'
- DIR: project_template
URL: 'git@git.drupal.org:project/cms.git'
- DIR: cpanel_template
URL: 'git@git.drupal.org:project/cms_cpanel.git'
- DIR: recipes/drupal_cms_accessibility_tools
URL: 'git@git.drupal.org:project/drupal_cms_accessibility_tools.git'
- DIR: recipes/drupal_cms_admin_ui
......@@ -168,10 +170,12 @@ run PHP tests:
PHPUNIT_OPTIONS: '--exclude-group=OpenTelemetry $CI_PROJECT_DIR/$DIR'
rules:
# Don't test the `drupal_cms_analytics` recipe, because it is a metapackage.
- if: $DIR =~ /\/drupal_cms_analytics$/
when: never
- if: $PERFORMANCE_TEST == "1"
when: never
- { if: $DIR =~ /\/drupal_cms_analytics$/, when: never }
# The cPanel project template is identical to the normal one.
- { if: $DIR == "cpanel_template", when: never }
# If we're only running a performance test, don't run the full test suite.
- { if: $PERFORMANCE_TEST == "1", when: never }
# Run the tests in all other circumstances.
- when: on_success
test performance:
......
This directory is a placeholder for the cPanel-friendly version of the Drupal CMS project template, which is automatically generated for tagged releases only, by the `ddev tag` script. Don't change anything here unless you know what you're doing.
The cPanel-friendly project template is identical to the normal one, except that it doesn't use a relocated document root (it's analogous to core's `drupal/legacy-project` template). It also has a different package name, so that's separately installable.
......@@ -61,10 +61,10 @@
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/Commands/contrib/{$name}": ["type:drupal-drush"],
"./drush/Commands/contrib/{$name}": ["type:drupal-drush"],
"web/modules/custom/{$name}": ["type:drupal-custom-module"],
"web/profiles/custom/{$name}": ["type:drupal-custom-profile"],
"recipes/{$name}": ["type:drupal-recipe"],
"./recipes/{$name}": ["type:drupal-recipe"],
"web/themes/custom/{$name}": ["type:drupal-custom-theme"]
},
"drupal-core-project-message": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment