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

Add CANARY_CORE_RECOMMENDED and CANARY_PREFER_STABLE variables

parent 3402b6fe
No related branches found
No related tags found
1 merge request!470Add CANARY_CORE_RECOMMENDED and CANARY_PREFER_STABLE variables
Pipeline #408453 skipped
......@@ -115,12 +115,13 @@ build test project:
- *create-project
# Generate `composer.json` by merging our dev requirements into the project template.
- .ddev/homeadditions/bin/generate-composer-json > $BUILD_DIR/composer.json
# If this is a "canary" build, allow dev versions of all dependencies.
- if [ -n "$CANARY" ]; then composer config prefer-stable false --working-dir=$BUILD_DIR; fi
- cd $BUILD_DIR
- 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.
- composer install --working-dir=$BUILD_DIR
- composer install
# 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:
paths:
- $BUILD_DIR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment