Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates-3449631
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
automatic_updates-3449631
Commits
29d3f48b
Commit
29d3f48b
authored
2 years ago
by
Travis Carden
Committed by
Ted Bowman
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3304836
by TravisCarden: Improve/fix the local development environment setup script slightly
parent
d595c319
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/setup_local_dev.sh
+8
-4
8 additions, 4 deletions
scripts/setup_local_dev.sh
with
8 additions
and
4 deletions
scripts/setup_local_dev.sh
+
8
−
4
View file @
29d3f48b
...
...
@@ -73,6 +73,7 @@ echo "
# PhpStorm config
.idea
# Custom and contributed Drupal extensions
libraries
modules
profiles
themes
...
...
@@ -89,9 +90,10 @@ git clone \
https://git.drupalcode.org/project/automatic_updates.git
\
modules/automatic_updates
# Tell Composer to look for the package in the local clone. This is used rather
# than the upstream repository so that the composer.json of the code under test
# is exercised.
# Tell Composer to look for the package in the local clone. This is done rather
# than MERELY cloning the module so that the composer.json of the code under
# development is actually exercised and dependencies don't have to be added
# manually.
composer config
\
repositories.automatic_updates
\
path
\
...
...
@@ -102,10 +104,12 @@ composer config \
JSON
=
$(
sed
's/"type": "path"/"type": "path", "options": {"symlink": false}/g'
composer.json
)
echo
"
$JSON
"
>
composer.json
# Update the Composer platform PHP requirement.
composer config platform.php 7.4.0
# Require the module using the checked out dev branch, ignoring the PHP version
# requirement.
composer require
\
--ignore-platform-req
=
php
\
--no-ansi
\
drupal/automatic_updates:dev-
"
$AUTOMATIC_UPDATES_BRANCH
"
...
...
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