Add Tugboat configuration to enable live preview environments for merge requests.
Steps
- Create
.tugboat/config.yml. - Enable Tugboat integration on the project's GitLab settings.
- The preview environment should:
- Use
tugboatqa/drupal:11andtugboatqa/mariadbimages - Install the module via Composer path repository
- Enable
webform_workflows_elementand its dependencies (workflows,webform) - Optionally enable submodules (
webform_workflows_element_views,webform_workflows_element_maestro) if their dependencies are available
- Use
Proposed .tugboat/config.yml
services: php: image: tugboatqa/drupal:11 default: true http: false depends: mysql commands: update: | set -eux cd $DRUPAL_COMPOSER_ROOT composer config minimum-stability dev composer config repositories.tugboat path $TUGBOAT_ROOT composer require drupal/webform_workflows_element vendor/bin/drush \ --yes \ --db-url=mysql://tugboat:tugboat@mysql:3306/tugboat \ --site-name="Live preview for ${TUGBOAT_PREVIEW_NAME}" \ --account-pass=admin \ site:install standard echo "\$settings['trusted_host_patterns'] = ['\.tugboatqa\.com\$'];" >> $DOCROOT/sites/default/settings.php mkdir -p $DRUPAL_DOCROOT/sites/default/files chgrp -R www-data $DRUPAL_DOCROOT/sites/default/files chmod 2775 $DRUPAL_DOCROOT/sites/default/files chmod -R g+w $DRUPAL_DOCROOT/sites/default/files vendor/bin/drush --yes pm:enable webform_workflows_element build: | set -eux cd $DRUPAL_COMPOSER_ROOT composer install --optimize-autoloader composer update drupal/webform_workflows_element --with-all-dependencies vendor/bin/drush --yes updb vendor/bin/drush cache:rebuild mysql: image: tugboatqa/mariadb
Issue fork webform_workflows_element-3576325
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #5
mably commented