Skip to content

Instantly share code, notes, and snippets.

Created April 9, 2015 16:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# @author Matt Korostoff <>
# @internal
# @category
# @copyright Licensed under the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#Install site
sudo rm /Users/matt/Sites/nbcsports.local/docroot/sites/default/settings.php
cd /Users/matt/Sites/nbcsports.local/docroot
sudo drush si nbcs -y --site-name='NBC Sports (dev)' --account-name=admin --account-pass=redacted --db-url=mysql://root@
#Import videos
drush eval "if(function_exists('nbcs_video_on_demand_import_videos')) { nbcs_video_on_demand_import_videos(); }"
#Run tests
cd /Users/matt/Sites/nbcsports.local/tests/behat
sudo vendor/bin/behat
cd /Users/matt/Sites/nbcsports.local/docroot
drush en -y auto_login_url
url=$(drush eval "print auto_login_url_create(1, 'node', 1);" | sed 's/default/nbcsports.local:9999/g')
open -a "/Applications/Google" "${url}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment