Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
FIX Use composer update for prefer-lowest
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 20, 2022
1 parent 974cbbe commit ec3325c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ before_script:
- if [[ $(composer validate 2>&1 | tr '\n' ' ') =~ ' is valid' ]]; then cat composer.json; fi

# Install with --prefer-source to ensure that admin javascript (which has export-ignore in .gitattributes) is installed so that NPM_TEST works properly
- composer install --prefer-source --no-interaction --no-progress --optimize-autoloader --verbose --profile $COMPOSER_INSTALL_ARG
# Modules do not have composer.lock files, so `composer install` is faster than `composer update`, however
# --prefer-lowest is only supported by `composer update`, not `composer install`
- COMPOSER_COMMAND=install
- if [ "$COMPOSER_INSTALL_ARG" == "--prefer-lowest" ]; then COMPOSER_COMMAND=update; fi
- composer $COMPOSER_COMMAND --prefer-source --no-interaction --no-progress --optimize-autoloader --verbose --profile $COMPOSER_INSTALL_ARG
- composer show

# Remove vendor unit tests files that were installed because of the use of --prefer-source
Expand Down

0 comments on commit ec3325c

Please sign in to comment.