Skip to content

Commit

Permalink
LionsAd#34: Added choice of installation profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Aug 6, 2015
1 parent 0d25ea9 commit 2c7722e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ env:
# The environment to use, supported are: drupal-7, drupal-8
- DRUPAL_TI_ENVIRONMENT="drupal-7"

# The installation propfile to use:
- DRUPAL_TI_INSTALL_PROFILE="testing"

# Drupal specific variables.
- DRUPAL_TI_DB="drupal_travis_db"
- DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db"
Expand Down
8 changes: 7 additions & 1 deletion environments/drupal-7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,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"
php -d sendmail_path=$(which true) ~/.composer/vendor/bin/drush.php --yes site-install $DRUPAL_TI_INSTALL_PROFILE --db-url="$DRUPAL_TI_DB_URL"
drush use $(pwd)#default
}

Expand All @@ -30,3 +30,9 @@ if [ "$PHP_VERSION" = "5.3" ]
then
export DRUPAL_TI_DRUSH_VERSION="drush/drush:6.*"
fi

# Use 'testing' by default.
if [ -z "$DRUPAL_TI_INSTALL_PROFILE" ]
then
export DRUPAL_TI_INSTALL_PROFILE="testing"
fi
8 changes: 7 additions & 1 deletion environments/drupal-8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,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"
php -d sendmail_path=$(which true) ~/.composer/vendor/bin/drush.php --yes -v site-install $DRUPAL_TI_INSTALL_PROFILE --db-url="$DRUPAL_TI_DB_URL"
drush use $(pwd)#default
}

Expand All @@ -23,3 +23,9 @@ export PATH="$DRUPAL_TI_DIST_DIR/usr/bin:$PATH"

# Display used for running selenium browser.
export DISPLAY=:99.0

# Use 'minimal' by default.
if [ -z "$DRUPAL_TI_INSTALL_PROFILE" ]
then
export DRUPAL_TI_INSTALL_PROFILE="minimal"
fi

0 comments on commit 2c7722e

Please sign in to comment.