Skip to content

Commit

Permalink
Fix upgrade testing (#84)
Browse files Browse the repository at this point in the history
* Fix upgrade testing

* No symlink

* Foo

* Fpp

---------

Co-authored-by: Christian Fritsch <[email protected]>
  • Loading branch information
chrfritsch and Christian Fritsch authored Jan 14, 2025
1 parent 2ac65c0 commit f86a0a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/stages/prepare_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ _stage_prepare_upgrade() {
fi

# Set the path repository back to the project under test.
composer config repositories.0 path "${DRUPAL_TESTING_WORKSPACE}" --working-dir="${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}"

composer config repositories.0 --json "{\"type\":\"path\", \"url\":\"${DRUPAL_TESTING_PROJECT_BASEDIR}\", \"options\":{\"symlink\": false}}" --working-dir="${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}"
# Use jq to find all dev dependencies of the project and add them to root composer file.
for dev_dependency in $(jq -r '.["require-dev"?] | keys[] as $k | "\($k):\(.[$k])"' "${DRUPAL_TESTING_PROJECT_BASEDIR}"/composer.json); do
composer require "${dev_dependency}" --dev --no-update --working-dir="${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}"
Expand Down

0 comments on commit f86a0a3

Please sign in to comment.