Skip to content
Snippets Groups Projects
Commit 29d3f48b authored by Travis Carden's avatar Travis Carden Committed by Ted Bowman
Browse files

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
...@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment