Skip to content
Snippets Groups Projects

Add CANARY_CORE_RECOMMENDED and CANARY_PREFER_STABLE variables

Merged Adam G-H requested to merge issue/drupal_cms-3501282:3501282-canary into 1.x
+ 5
4
@@ -115,12 +115,13 @@ build test project:
@@ -115,12 +115,13 @@ build test project:
- *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
# If this is a "canary" build, allow dev versions of all dependencies.
- cd $BUILD_DIR
- if [ -n "$CANARY" ]; then composer config prefer-stable false --working-dir=$BUILD_DIR; fi
- if [ -n "$CANARY_CORE_RECOMMENDED" ]; then composer require --no-update "drupal/core-recommended:$CANARY_CORE_RECOMMENDED"; fi
 
- if [ -n "$CANARY_PREFER_STABLE" ]; then composer config prefer-stable $CANARY_PREFER_STABLE; fi
# Install dependencies.
# Install dependencies.
- composer install --working-dir=$BUILD_DIR
- composer install
# Remove all `.git` directories in the built project.
# Remove all `.git` directories in the built project.
- find $BUILD_DIR -depth -type d -name '.git' -exec rm -r -f {} ';'
- find . -depth -type d -name '.git' -exec rm -r -f {} ';'
artifacts:
artifacts:
paths:
paths:
- $BUILD_DIR
- $BUILD_DIR
Loading