Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow newer Drush for newer Drupal #10

Merged
merged 2 commits into from
Jun 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions travis_setup_drupal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,19 @@ fi
composer require "drupal/core-dev:$DRUPAL_VERSION"
DRUPAL_MAJOR=$(echo "$DRUPAL_VERSION" | cut -d. -f1)
if [ $DRUPAL_MAJOR -ge 9 ]; then
composer require phpspec/prophecy-phpunit:^2
# XXX: 9.4.x-dev installs phpunit 8... but then we expect to have to install
# the phpspec/prophecy-phpunit:^2 thing, which only works with phpunit 9.
composer require -W phpunit/phpunit:^9
composer require phpspec/prophecy-phpunit:^2 drush/drush
elif [ $DRUPAL_MAJOR -eq 8 ]; then
composer require drush/drush:^10
elif [ $DRUPAL_MAJOR -eq 7 ]; then
composer require drush/drush:^8
else
echo "Unmapped major version of Drupal: $DRUPAL_MAJOR"
exit 1
fi
composer require drush/drush=~10

echo "Setup Drush"
sudo ln -s /opt/drupal/vendor/bin/drush /usr/bin/drush
phpenv rehash
Expand Down