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

Issue #3493335 by phenaproxima, catch, poker10, tim.plunkett, pameeela, yesct,...

Issue #3493335 by phenaproxima, catch, poker10, tim.plunkett, pameeela, yesct, damienmckenna, greggles: Change minimum-stability to stable for 1.0 release
parent 5a6b256f
No related branches found
No related tags found
No related merge requests found
Pipeline #391374 passed
Showing
with 71 additions and 52 deletions
...@@ -13,8 +13,12 @@ if [ -z "$VERSION" ]; then ...@@ -13,8 +13,12 @@ if [ -z "$VERSION" ]; then
exit 1 exit 1
fi fi
# Find all `composer.json` files and change their `*` version constraints. COMPONENTS=$(find $PWD -maxdepth 2 -type d -name 'drupal_cms_*' -or -name project_template)
find . -maxdepth 3 -type f -name composer.json -exec sed --in-place "s/\"\*\"/\"~$VERSION\"/g" {} ';'
# Change all components' version constraints.
for dir in $COMPONENTS; do
adjust-constraints $dir "~$VERSION"
done
# Generate pre-parsed versions of the recipes available to the installer, # Generate pre-parsed versions of the recipes available to the installer,
# and store them in a serialized file format for one-time use. This greatly # and store them in a serialized file format for one-time use. This greatly
...@@ -23,24 +27,13 @@ cd $DDEV_DOCROOT ...@@ -23,24 +27,13 @@ cd $DDEV_DOCROOT
./profiles/drupal_cms_installer/build-cache.sh ./profiles/drupal_cms_installer/build-cache.sh
cd - cd -
# Bump the minimum stability of the project template and ensure it correctly # Bump the minimum stability of the project template.
# conflicts with `drupal/drupal`. composer config minimum-stability stable --working-dir=project_template
cd project_template
composer config minimum-stability beta
jq --indent 4 '.conflict."drupal/drupal" = "*"' composer.json > tag.json
mv -f tag.json composer.json
cd -
# For visbility, output every line we're executing, as interpreted by the shell.
set -x
# Remove any untracked files.
git clean -d --force
# Stage all changes, but if we're just testing this script, don't actually commit # Stage all changes, but if we're just testing this script, don't actually commit
# or tag anything. # or tag anything.
git add . git add $COMPONENTS
if [[ "$VERSION" == "test" ]]; then if [[ $2 == "test" ]]; then
exit 0 exit 0
fi fi
...@@ -49,5 +42,7 @@ git commit --message=$VERSION ...@@ -49,5 +42,7 @@ git commit --message=$VERSION
git tag $VERSION git tag $VERSION
# Make another commit that puts this branch back into its pre-tagged state. # Make another commit that puts this branch back into its pre-tagged state.
find . -maxdepth 2 -type d -name 'drupal_cms_*' -or -name project_template -exec git checkout HEAD^1 {} ';' for dir in $COMPONENTS; do
git checkout HEAD^1 $dir
done
git commit --all --message="Back to dev." git commit --all --message="Back to dev."
#!/usr/bin/env bash
# Alters dependency constraints for Drupal CMS components required by a
# given `composer.json` file.
# Usage: adjust-constraints path/to/component <constraint>
# Example: adjust-constraints project_template "~1.2.3"
DIR=$1
DEPENDENCIES=$(jq -r '.require | keys | .[] | select(startswith("drupal/drupal_cms_"))' $DIR/composer.json)
echo "Adjusting constraints in $DIR."
for package in $DEPENDENCIES; do
composer require --quiet --no-update --working-dir=$DIR "$package:$2"
done
...@@ -108,6 +108,10 @@ default: ...@@ -108,6 +108,10 @@ default:
build test project: build test project:
stage: test stage: test
script: script:
# If this is a merge request branch, ensure that any recipe which requires the
# target branch (e.g., `"drupal/drupal_cms_ai": "1.x-dev"`) will know to refer
# to the detached HEAD we're operating from.
- if [ $CI_PIPELINE_SOURCE == "merge_request_event" ]; then find . -maxdepth 2 -type d -name 'drupal_cms_*' -exec composer config extra.branch-alias.dev-$CI_COMMIT_SHA $CI_MERGE_REQUEST_TARGET_BRANCH_NAME-dev --working-dir={} ';' ; fi
- *create-project - *create-project
# Generate `composer.json` by merging our dev requirements into the project template. # Generate `composer.json` by merging our dev requirements into the project template.
- .ddev/homeadditions/bin/generate-composer-json > $BUILD_DIR/composer.json - .ddev/homeadditions/bin/generate-composer-json > $BUILD_DIR/composer.json
......
...@@ -19,20 +19,24 @@ ...@@ -19,20 +19,24 @@
"drupal/core-composer-scaffold": "^11.1.1", "drupal/core-composer-scaffold": "^11.1.1",
"drupal/core-project-message": "^11.1.1", "drupal/core-project-message": "^11.1.1",
"drupal/core-recommended": "^11.1.1", "drupal/core-recommended": "^11.1.1",
"drupal/drupal_cms_starter": "*", "drupal/dashboard": "@beta",
"drupal/drupal_cms_analytics": "*", "drupal/drupal_cms_accessibility_tools": "1.0.x-dev",
"drupal/drupal_cms_accessibility_tools": "*", "drupal/drupal_cms_ai": "1.0.x-dev",
"drupal/drupal_cms_ai": "*", "drupal/drupal_cms_analytics": "1.0.x-dev",
"drupal/drupal_cms_blog": "*", "drupal/drupal_cms_blog": "1.0.x-dev",
"drupal/drupal_cms_case_study": "*", "drupal/drupal_cms_case_study": "1.0.x-dev",
"drupal/drupal_cms_events": "*", "drupal/drupal_cms_events": "1.0.x-dev",
"drupal/drupal_cms_forms": "*", "drupal/drupal_cms_forms": "1.0.x-dev",
"drupal/drupal_cms_news": "*", "drupal/drupal_cms_news": "1.0.x-dev",
"drupal/drupal_cms_person": "*", "drupal/drupal_cms_page": "1.0.x-dev",
"drupal/drupal_cms_project": "*", "drupal/drupal_cms_person": "1.0.x-dev",
"drupal/drupal_cms_seo_tools": "*", "drupal/drupal_cms_project": "1.0.x-dev",
"drush/drush": "^13", "drupal/drupal_cms_seo_tools": "1.0.x-dev",
"drupal/project_browser": "@alpha" "drupal/drupal_cms_starter": "1.0.x-dev",
"drupal/klaro": "@rc",
"drupal/project_browser": "@alpha",
"drupal/webform": "@beta",
"drush/drush": "^13"
}, },
"conflict": { "conflict": {
"drupal/drupal": "*" "drupal/drupal": "*"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"license": ["GPL-2.0-or-later"], "license": ["GPL-2.0-or-later"],
"require": { "require": {
"drupal/core": ">=10.3", "drupal/core": ">=10.3",
"drupal/drupal_cms_page": "*", "drupal/drupal_cms_page": "1.0.x-dev",
"drupal/editoria11y": "^2.2" "drupal/editoria11y": "^2.2"
} }
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"drupal/ai_image_alt_text": "^1", "drupal/ai_image_alt_text": "^1",
"drupal/ai_provider_anthropic": "^1", "drupal/ai_provider_anthropic": "^1",
"drupal/ai_provider_openai": "^1", "drupal/ai_provider_openai": "^1",
"drupal/drupal_cms_privacy_basic": "*", "drupal/drupal_cms_privacy_basic": "1.0.x-dev",
"league/commonmark": "^2.4" "league/commonmark": "^2.4"
} }
} }
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"type": "metapackage", "type": "metapackage",
"description": "Adds recipes for tracking website traffic.", "description": "Adds recipes for tracking website traffic.",
"require": { "require": {
"drupal/drupal_cms_google_analytics": "*" "drupal/drupal_cms_google_analytics": "1.0.x-dev"
} }
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"require": { "require": {
"drupal/bpmn_io": "^2.0.3", "drupal/bpmn_io": "^2.0.3",
"drupal/core": ">=10.3", "drupal/core": ">=10.3",
"drupal/eca": "^2.1.0", "drupal/eca": "^2.1",
"drupal/login_emailusername": "^3", "drupal/login_emailusername": "^3",
"drupal/token": "^1" "drupal/token": "^1"
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"require": { "require": {
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/add_content_by_bundle": "^1.2.2", "drupal/add_content_by_bundle": "^1.2.2",
"drupal/drupal_cms_page": "*", "drupal/drupal_cms_page": "1.0.x-dev",
"drupal/better_exposed_filters": "^7", "drupal/better_exposed_filters": "^7",
"drupal/selective_better_exposed_filters": "^3" "drupal/selective_better_exposed_filters": "^3"
} }
......
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
"require": { "require": {
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/add_content_by_bundle": "^1.2.2", "drupal/add_content_by_bundle": "^1.2.2",
"drupal/drupal_cms_page": "*" "drupal/drupal_cms_page": "1.0.x-dev"
} }
} }
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"drupal/autosave_form": "^1.7", "drupal/autosave_form": "^1.7",
"drupal/bpmn_io": "^2.0.3", "drupal/bpmn_io": "^2.0.3",
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/drupal_cms_image": "*", "drupal/drupal_cms_image": "1.0.x-dev",
"drupal/eca": "^2.1.0", "drupal/eca": "^2.1",
"drupal/linkit": "^7", "drupal/linkit": "^7",
"drupal/pathauto": "^1.13", "drupal/pathauto": "^1.13",
"drupal/token": "^1", "drupal/token": "^1",
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/add_content_by_bundle": "^1.2.2", "drupal/add_content_by_bundle": "^1.2.2",
"drupal/address": "^2", "drupal/address": "^2",
"drupal/addtocal_augment": "^1.2@rc", "drupal/addtocal_augment": "^1.2.3",
"drupal/drupal_cms_page": "*", "drupal/drupal_cms_page": "1.0.x-dev",
"drupal/drupal_cms_privacy_basic": "*", "drupal/drupal_cms_privacy_basic": "1.0.x-dev",
"drupal/geocoder": "^4.10", "drupal/geocoder": "^4.10",
"drupal/geofield": "^1.47", "drupal/geofield": "^1.47",
"drupal/leaflet": "^10.2.33", "drupal/leaflet": "^10.2.33",
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
"type": "drupal-recipe", "type": "drupal-recipe",
"license": ["GPL-2.0-or-later"], "license": ["GPL-2.0-or-later"],
"require": { "require": {
"drupal/drupal_cms_anti_spam": "*", "drupal/drupal_cms_anti_spam": "1.0.x-dev",
"drupal/drupal_cms_page": "*", "drupal/drupal_cms_page": "1.0.x-dev",
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/webform": "^6.3-beta1" "drupal/webform": "^6.3-beta1"
} }
......
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
"require": { "require": {
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/google_tag": "^2.0.7", "drupal/google_tag": "^2.0.7",
"drupal/drupal_cms_privacy_basic": "*" "drupal/drupal_cms_privacy_basic": "1.0.x-dev"
} }
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"require": { "require": {
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/add_content_by_bundle": "^1.2.2", "drupal/add_content_by_bundle": "^1.2.2",
"drupal/drupal_cms_page": "*", "drupal/drupal_cms_page": "1.0.x-dev",
"drupal/better_exposed_filters": "^7", "drupal/better_exposed_filters": "^7",
"drupal/selective_better_exposed_filters": "^3" "drupal/selective_better_exposed_filters": "^3"
} }
......
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
"license": ["GPL-2.0-or-later"], "license": ["GPL-2.0-or-later"],
"require": { "require": {
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/drupal_cms_content_type_base": "*" "drupal/drupal_cms_content_type_base": "1.0.x-dev"
} }
} }
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
"license": ["GPL-2.0-or-later"], "license": ["GPL-2.0-or-later"],
"require": { "require": {
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/drupal_cms_content_type_base": "*" "drupal/drupal_cms_content_type_base": "1.0.x-dev"
} }
} }
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"drupal/bpmn_io": "^2.0.3", "drupal/bpmn_io": "^2.0.3",
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/eca": "^2.1", "drupal/eca": "^2.1",
"drupal/drupal_cms_page": "*", "drupal/drupal_cms_page": "1.0.x-dev",
"drupal/klaro": "^3-rc16", "drupal/klaro": "^3-rc16",
"drupal/menu_link_attributes": "^1.5" "drupal/menu_link_attributes": "^1.5"
} }
......
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
"require": { "require": {
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/add_content_by_bundle": "^1.2.2", "drupal/add_content_by_bundle": "^1.2.2",
"drupal/drupal_cms_page": "*" "drupal/drupal_cms_page": "1.0.x-dev"
} }
} }
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
"license": ["GPL-2.0-or-later"], "license": ["GPL-2.0-or-later"],
"require": { "require": {
"drupal/core": ">=10.4", "drupal/core": ">=10.4",
"drupal/drupal_cms_privacy_basic": "*" "drupal/drupal_cms_privacy_basic": "1.0.x-dev"
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment