Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_cms
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
drupal_cms
Commits
7a433f4d
Commit
7a433f4d
authored
3 months ago
by
Adam G-H
Committed by
Adam G-H
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add CANARY_CORE_RECOMMENDED and CANARY_PREFER_STABLE variables
parent
3402b6fe
No related branches found
No related tags found
1 merge request
!470
Add CANARY_CORE_RECOMMENDED and CANARY_PREFER_STABLE variables
Pipeline
#408453
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-4
5 additions, 4 deletions
.gitlab-ci.yml
with
5 additions
and
4 deletions
.gitlab-ci.yml
+
5
−
4
View file @
7a433f4d
...
...
@@ -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
...
...
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