From db15c0e086dc65b061a7519e09b225b51404823c Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Thu, 13 Feb 2014 14:32:08 +0000 Subject: [PATCH 1/2] Get Drush from Github. Drush devs are killing off their Pear repo... Great fun! --- tests/scripts/travis_setup.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/scripts/travis_setup.sh b/tests/scripts/travis_setup.sh index 3a52bb75..5ffc814e 100755 --- a/tests/scripts/travis_setup.sh +++ b/tests/scripts/travis_setup.sh @@ -21,7 +21,15 @@ pear channel-discover pear.phpqatools.org pear channel-discover pear.netpirates.net pear install pear/PHP_CodeSniffer-1.4.8 pear install pear.phpunit.de/phpcpd -pear install drush/drush-5.9.0 + +# Install Drush +git clone https://github.com/drush-ops/drush.git +pushd drush +git checkout 5.9.0 +chmod +x drush +ln -s $HOME/drush/drush /usr/local/sbin +popd + phpenv rehash drush dl --yes drupal cd drupal-* From 79bb3c00f169caf4c866f50fcd2eb887c6a72919 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Thu, 13 Feb 2014 14:35:06 +0000 Subject: [PATCH 2/2] Fix creation of the symlink. --- tests/scripts/travis_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/travis_setup.sh b/tests/scripts/travis_setup.sh index 5ffc814e..c1bd7751 100755 --- a/tests/scripts/travis_setup.sh +++ b/tests/scripts/travis_setup.sh @@ -27,8 +27,8 @@ git clone https://github.com/drush-ops/drush.git pushd drush git checkout 5.9.0 chmod +x drush -ln -s $HOME/drush/drush /usr/local/sbin popd +sudo ln -s $HOME/drush/drush /usr/local/sbin phpenv rehash drush dl --yes drupal