Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates-3406812
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-3406812
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
Branches
2.1.x
Tags
2.1.0
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 "
...
@@ -73,6 +73,7 @@ echo "
# PhpStorm config
# PhpStorm config
.idea
.idea
# Custom and contributed Drupal extensions
# Custom and contributed Drupal extensions
libraries
modules
modules
profiles
profiles
themes
themes
...
@@ -89,9 +90,10 @@ git clone \
...
@@ -89,9 +90,10 @@ git clone \
https://git.drupalcode.org/project/automatic_updates.git
\
https://git.drupalcode.org/project/automatic_updates.git
\
modules/automatic_updates
modules/automatic_updates
# Tell Composer to look for the package in the local clone. This is used rather
# Tell Composer to look for the package in the local clone. This is done rather
# than the upstream repository so that the composer.json of the code under test
# than MERELY cloning the module so that the composer.json of the code under
# is exercised.
# development is actually exercised and dependencies don't have to be added
# manually.
composer config
\
composer config
\
repositories.automatic_updates
\
repositories.automatic_updates
\
path
\
path
\
...
@@ -102,10 +104,12 @@ composer config \
...
@@ -102,10 +104,12 @@ composer config \
JSON
=
$(
sed
's/"type": "path"/"type": "path", "options": {"symlink": false}/g'
composer.json
)
JSON
=
$(
sed
's/"type": "path"/"type": "path", "options": {"symlink": false}/g'
composer.json
)
echo
"
$JSON
"
>
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
# Require the module using the checked out dev branch, ignoring the PHP version
# requirement.
# requirement.
composer require
\
composer require
\
--ignore-platform-req
=
php
\
--no-ansi
\
--no-ansi
\
drupal/automatic_updates:dev-
"
$AUTOMATIC_UPDATES_BRANCH
"
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