Skip to content
Snippets Groups Projects
Commit 2a600041 authored by James Sansbury's avatar James Sansbury Committed by Alex Bronstein
Browse files

#3475652: enable civictheme and set as default on Tugboat previews

parent b078c110
No related branches found
Tags 8.3.6 8.x-3.6
No related merge requests found
......@@ -23,10 +23,14 @@ services:
# Configure composer to require this module as a symlink.
composer config minimum-stability dev
composer config repositories.tugboat path $TUGBOAT_ROOT
composer require drupal/experience_builder
composer require \
drupal/experience_builder \
drupal/demo_design_system \
drupal/components
# Install Drupal on the site.
vendor/bin/drush \
php -d memory_limit=-1 \
vendor/bin/drush.php \
--yes \
--db-url=mysql://tugboat:tugboat@mysql:3306/tugboat \
--site-name="Live preview for ${TUGBOAT_PREVIEW_NAME}" \
......@@ -35,6 +39,7 @@ services:
# Add tugboat URLs to the Drupal trusted host patterns.
echo "\$settings['trusted_host_patterns'] = ['\.tugboatqa\.com\$'];" >> $DOCROOT/sites/default/settings.php
echo "if (PHP_SAPI === 'cli') {\n ini_set('memory_limit', '-1');\n}" >> $DOCROOT/sites/default/settings.php
# Set up the files directory permissions.
mkdir -p $DRUPAL_DOCROOT/sites/default/files
......@@ -43,7 +48,14 @@ services:
chmod -R g+w $DRUPAL_DOCROOT/sites/default/files
# Enable the module.
vendor/bin/drush --yes pm:install experience_builder media_library
vendor/bin/drush --yes pm:install \
experience_builder \
media_library \
components
# Enable starshot_demo theme.
vendor/bin/drush --yes theme:enable starshot_demo
vendor/bin/drush --yes config:set system.theme default starshot_demo
# Create node/1
vendor/bin/drush scr $TUGBOAT_ROOT/.tugboat/create-article-node.php
......@@ -58,11 +70,24 @@ services:
set -eux
cd $DRUPAL_COMPOSER_ROOT
composer install --optimize-autoloader
# Update this module, including all dependencies.
composer update drupal/experience_builder --with-all-dependencies
# Update packages and dependencies.
composer update --with-all-dependencies \
drupal/experience_builder \
drupal/demo_design_system \
drupal/components
# Run Drupal updates
vendor/bin/drush --yes updb
vendor/bin/drush cache:rebuild
# Update DDS components and fix permissions.
- npm --prefix $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system ci
- npm --prefix $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system run build
- npm --prefix $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system/starshot_demo ci
- npm --prefix $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system/starshot_demo run build
- chgrp -R www-data $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system
# Warm Drupal caches
- 'curl --silent --header "Host: $TUGBOAT_DEFAULT_SERVICE_URL_HOST" http://localhost > /dev/null'
mysql:
image: tugboatqa/mariadb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment