Browse Source

Merge pull request #515 from adam-vessey/7.x-new-drush-from-composer

Use a newer drush release (also, get it with composer).
pull/519/head
William Panting 11 years ago
parent
commit
5e02026712
  1. 10
      tests/scripts/travis_setup.sh

10
tests/scripts/travis_setup.sh

@ -18,19 +18,11 @@ pear upgrade --force pear
pear channel-discover pear.drush.org pear channel-discover pear.drush.org
# "prefer-source" required due to SSL shenanigans on the Travis boxes... # "prefer-source" required due to SSL shenanigans on the Travis boxes...
composer global require --prefer-source 'squizlabs/php_codesniffer=*' 'sebastian/phpcpd=*' composer global require --prefer-source 'squizlabs/php_codesniffer=*' 'sebastian/phpcpd=*' 'drush/drush:6.3.0'
# Because we can't add to the PATH here and this file is used in many repos, # Because we can't add to the PATH here and this file is used in many repos,
# let's just throw symlinks in. # let's just throw symlinks in.
find $HOME/.composer/vendor/bin -executable \! -type d -exec sudo ln -s {} /usr/local/sbin/ \; find $HOME/.composer/vendor/bin -executable \! -type d -exec sudo ln -s {} /usr/local/sbin/ \;
# Install Drush
git clone https://github.com/drush-ops/drush.git
pushd drush
git checkout 5.9.0
chmod +x drush
popd
sudo ln -s $HOME/drush/drush /usr/local/sbin
phpenv rehash phpenv rehash
drush dl --yes drupal drush dl --yes drupal
cd drupal-* cd drupal-*

Loading…
Cancel
Save