Skip to content

Commit

Permalink
Merge pull request #79 from weierophinney/feature/disable-platform-ph…
Browse files Browse the repository at this point in the history
…p-during-jobs

Disable `platform.php` composer config for lowest/latest jobs
  • Loading branch information
Ocramius authored Feb 7, 2022
2 parents e1b8f30 + dc5580f commit 73f2243
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,19 @@ function composer_install_dependencies {
COMPOSER_ARGS="${COMPOSER_ARGS} --ignore-platform-req=php"
fi


case $DEPS in
lowest)
echo "Installing lowest supported dependencies via Composer"
# Disable platform.php, if set
composer config --unset platform.php
# shellcheck disable=SC2086
composer update ${COMPOSER_ARGS} --prefer-lowest
;;
latest)
echo "Installing latest supported dependencies via Composer"
# Disable platform.php, if set
composer config --unset platform.php
# shellcheck disable=SC2086
composer update ${COMPOSER_ARGS}
;;
Expand Down

0 comments on commit 73f2243

Please sign in to comment.