From 83c9ac72317254f2332dc9119614e7ba620644cd Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Thu, 30 Jul 2015 21:58:57 +1000 Subject: [PATCH 1/2] #29: Drush site-set --- environments/drupal-7.sh | 1 + environments/drupal-8.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/environments/drupal-7.sh b/environments/drupal-7.sh index 48dfb91..6f948d2 100644 --- a/environments/drupal-7.sh +++ b/environments/drupal-7.sh @@ -6,6 +6,7 @@ function drupal_ti_install_drupal() { drush --yes dl drupal-7 --drupal-project-rename=drupal cd drupal php -d sendmail_path=$(which true) ~/.composer/vendor/bin/drush.php --yes site-install testing --db-url="$DRUPAL_TI_DB_URL" + drush use $(pwd)#default } function drupal_ti_clear_caches() { diff --git a/environments/drupal-8.sh b/environments/drupal-8.sh index 47861ee..55825ab 100644 --- a/environments/drupal-8.sh +++ b/environments/drupal-8.sh @@ -6,6 +6,7 @@ function drupal_ti_install_drupal() { git clone --depth 1 --branch 8.0.x http://git.drupal.org/project/drupal.git cd drupal php -d sendmail_path=$(which true) ~/.composer/vendor/bin/drush.php --yes -v site-install minimal --db-url="$DRUPAL_TI_DB_URL" + drush use $(pwd)#default } function drupal_ti_clear_caches() { From cc901ac2713ad76660cad108682fc9b6dbbbc9ad Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Thu, 30 Jul 2015 23:00:34 +1000 Subject: [PATCH 2/2] Added documentation about drush site-set --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1a268c6..9ebc0f5 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,7 @@ Example: ```` Contributions are welcome. + +### Drush + +For your convenience the 'drush site-set' command is set for the Drupal installation, so any Drush commands triggered in your own scripts will be run against the test Drupal instance.