From 30684345f6ca8cc0dc21e78c390b9c5bb47b140a Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 29 Jul 2026 12:43:45 +1000 Subject: [PATCH 1/7] [#2848] Split provision example into demo, development module and example scripts. --- .../docs/content/drupal/provision-example.sh | 43 +- .vortex/docs/content/drupal/provision.mdx | 38 +- .../src/Prompts/Handlers/Modules.php | 17 +- .../Handlers/ModulesHandlerProcessTest.php | 9 + .vortex/tests/phpunit/Traits/SutTrait.php | 4 +- .vortex/tooling/README.md | 19 +- .../unit/provision-enable-demo-modules.bats | 41 ++ .../unit/provision-enable-dev-modules.bats | 103 +++++ .../tooling/tests/unit/provision-example.bats | 10 +- .vortex/tooling/tests/unit/provision.bats | 398 +++++++++++++----- scripts/provision-00-enable-demo-modules.sh | 110 +++++ scripts/provision-10-enable-dev-modules.sh | 49 +++ scripts/provision-10-example.sh | 132 ------ scripts/provision-40-example.sh | 57 +++ 14 files changed, 766 insertions(+), 264 deletions(-) create mode 100644 .vortex/tooling/tests/unit/provision-enable-demo-modules.bats create mode 100644 .vortex/tooling/tests/unit/provision-enable-dev-modules.bats create mode 100755 scripts/provision-00-enable-demo-modules.sh create mode 100755 scripts/provision-10-enable-dev-modules.sh delete mode 100755 scripts/provision-10-example.sh create mode 100755 scripts/provision-40-example.sh diff --git a/.vortex/docs/content/drupal/provision-example.sh b/.vortex/docs/content/drupal/provision-example.sh index ab01943e0..99b504583 100755 --- a/.vortex/docs/content/drupal/provision-example.sh +++ b/.vortex/docs/content/drupal/provision-example.sh @@ -8,11 +8,9 @@ # This approach ensures a clear sequence and avoids potential ordering issues. # # Example: -# - provision-10-example.sh -# - provision-20-example.sh -# - provision-30-example.sh -# -# shellcheck disable=SC2086 +# - provision-40-example.sh +# - provision-50-example.sh +# - provision-60-example.sh set -eu [ "${VORTEX_DEBUG-}" = "1" ] && set -x @@ -22,6 +20,7 @@ set -eu info() { printf " ==> %s\n" "${1}"; } note() { printf " %s\n" "${1}"; } task() { printf " > %s\n" "${1}"; } +pass() { printf " < %s\n" "${1}"; } drush() { ./vendor/bin/drush -y "$@"; } @@ -31,24 +30,24 @@ info "Started example operations." environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" note "Environment: ${environment}" -# 👇 Perform operations based on the current environment. -if echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then - note "Running example operations in non-production environment." - - # 👇 Enable custom site modules and run its deployment hooks. - task "Installing custom site modules." - drush pm:install ys_base - drush pm:install ys_search - drush pm:install ys_demo - - # 👇 Conditionally perform an action if this is a "fresh" database. - if [ "${VORTEX_PROVISION_OVERRIDE_DB:-0}" = "1" ]; then - note "Fresh database detected. Performing additional example operations." - else - note "Existing database detected. Performing additional example operations." - fi -else +# 👇 Stop early in the environments the operations should not run in. +if ! echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then note "Skipped example operations in production environment." + exit 0 +fi + +note "Running example operations in non-production environment." + +# 👇 Place your commands here. +task "Performing an example operation." +note "Replace this with your own commands." +pass "Performed an example operation." + +# 👇 Conditionally perform an action if this is a "fresh" database. +if [ "${VORTEX_PROVISION_OVERRIDE_DB:-0}" = "1" ]; then + note "Fresh database detected. Performing additional example operations." +else + note "Existing database detected. Performing additional example operations." fi info "Finished example operations." diff --git a/.vortex/docs/content/drupal/provision.mdx b/.vortex/docs/content/drupal/provision.mdx index 42f67f3f7..3e891c438 100644 --- a/.vortex/docs/content/drupal/provision.mdx +++ b/.vortex/docs/content/drupal/provision.mdx @@ -233,11 +233,21 @@ specific order. To run custom scripts, create a new file in the `scripts` directory with the `provision-` prefix and the `.sh` extension, and make it executable with -`chmod +x scripts/provision-10-example.sh`. The script will be automatically +`chmod +x scripts/provision-50-custom.sh`. The script will be automatically discovered and executed. It is recommended to use a 2-digit suffix to control the order of execution: -e.g., `provision-10-example.sh`, `provision-20-another-example.sh`. +e.g., `provision-50-custom.sh`, `provision-60-another-custom.sh`. + +**Vortex** ships the following scripts: + +| Script | Purpose | +|------------------------------------------|-------------------------------------------------------------| +| `provision-00-enable-demo-modules.sh` | Enables the modules and content model the demo site uses | +| `provision-10-enable-dev-modules.sh` | Enables the development modules | +| `provision-20-migration.sh` | Runs the content migration | +| `provision-30-search-index.sh` | Rebuilds the search index | +| `provision-40-example.sh` | A runnable example that performs no operations | ### Conditional execution @@ -280,6 +290,30 @@ import ProvisionScriptExample from '!!raw-loader!./provision-example.sh'; +### Demo modules + +**Vortex** ships a `scripts/provision-00-enable-demo-modules.sh` custom script +that stands up the demo site: it creates the content model, sets the site name, +switches the administration interface to the core Navigation module, and installs +the contrib, service and custom site modules before running their deployment +hooks. + +It runs first so that the content model exists before the modules that depend on +it are installed. Replace its operations with your own once the site stops +relying on the demo content. + +### Development modules + +**Vortex** ships a `scripts/provision-10-enable-dev-modules.sh` custom script that +installs the development modules - [Devel](https://www.drupal.org/project/devel) +and [SDC Devel](https://www.drupal.org/project/sdc_devel). + +Development modules live in their own script so that they stay enabled after the +demo and example scripts are adapted or removed. + +Both scripts run only in the `local`, `ci`, `dev` and `stage` environments. To +opt out of either set of modules, remove the corresponding script. + ### Search indexing Projects with the Solr service ship with a `scripts/provision-30-search-index.sh` diff --git a/.vortex/installer/src/Prompts/Handlers/Modules.php b/.vortex/installer/src/Prompts/Handlers/Modules.php index b977abf73..3486ea416 100644 --- a/.vortex/installer/src/Prompts/Handlers/Modules.php +++ b/.vortex/installer/src/Prompts/Handlers/Modules.php @@ -10,6 +10,13 @@ class Modules extends AbstractHandler { + /** + * Modules installed by the dedicated development modules provision script. + * + * @var string[] + */ + protected const DEV_MODULES = ['devel', 'sdc_devel']; + /** * {@inheritdoc} */ @@ -83,8 +90,8 @@ public function process(): void { // Remove module from settings file. File::remove($t . '/' . $w . '/sites/default/includes/modules/settings.' . $module_name . '.php'); - // Remove module from the provision example file. - File::replaceContentInFile($t . '/scripts/provision-10-example.sh', Replacement::create('module', function (string $content) use ($module_name): string { + // Remove module from the provision demo modules file. + File::replaceContentInFile($t . '/scripts/provision-00-enable-demo-modules.sh', Replacement::create('module', function (string $content) use ($module_name): string { $pattern = '/^(\s*)(drush\s+pm:install.*\b' . preg_quote($module_name, '/') . '\b.*)$/m'; $content = preg_replace_callback($pattern, function (array $matches) use ($module_name): string { $indent = $matches[1]; @@ -108,6 +115,12 @@ public function process(): void { } } + // Without any development modules left to install, the script has no + // operations to perform, so remove it rather than shipping an empty shell. + if (count(array_intersect(static::DEV_MODULES, $selected_modules)) === 0) { + File::remove($t . '/scripts/provision-10-enable-dev-modules.sh'); + } + if (count($selected_modules) === 0) { File::removeTokenAsync('MODULE'); } diff --git a/.vortex/installer/tests/Functional/Handlers/ModulesHandlerProcessTest.php b/.vortex/installer/tests/Functional/Handlers/ModulesHandlerProcessTest.php index b324b3b50..9b9b6e368 100644 --- a/.vortex/installer/tests/Functional/Handlers/ModulesHandlerProcessTest.php +++ b/.vortex/installer/tests/Functional/Handlers/ModulesHandlerProcessTest.php @@ -130,6 +130,15 @@ public static function dataProviderHandlerProcess(): \Iterator { 'stage_file_proxy', ])), ]; + yield 'modules_no_devel_sdc_devel' => [ + static::cw(function ($test): void { + $test->prompts[Modules::id()] = static::getModulesExcept(['devel', 'sdc_devel']); + }), + static::cw(function (AbstractHandlerProcessTestCase $test): void { + $test->assertSutNotContains(['drupal/devel', 'drupal/sdc_devel']); + $test->assertFileDoesNotExist(static::$sut . '/scripts/provision-10-enable-dev-modules.sh'); + }), + ]; yield 'modules_none' => [ static::cw(fn($test): array => $test->prompts[Modules::id()] = []), static::cw(function (AbstractHandlerProcessTestCase $test): void { diff --git a/.vortex/tests/phpunit/Traits/SutTrait.php b/.vortex/tests/phpunit/Traits/SutTrait.php index 9e3a3952f..daec6625e 100644 --- a/.vortex/tests/phpunit/Traits/SutTrait.php +++ b/.vortex/tests/phpunit/Traits/SutTrait.php @@ -483,8 +483,10 @@ protected function assertVortexFilesPresent(string $webroot = 'web'): void { $this->assertFileExists('patches/.gitkeep'); // Script files. - $this->assertFileExists('scripts/provision-10-example.sh'); + $this->assertFileExists('scripts/provision-00-enable-demo-modules.sh'); + $this->assertFileExists('scripts/provision-10-enable-dev-modules.sh'); $this->assertFileExists('scripts/provision-30-search-index.sh'); + $this->assertFileExists('scripts/provision-40-example.sh'); // Vortex tooling is shipped via the 'drevops/vortex-tooling' Composer // package and bootstrapped by 'scripts/vortex-tooling.sh'. diff --git a/.vortex/tooling/README.md b/.vortex/tooling/README.md index e17afd30a..213feebb2 100644 --- a/.vortex/tooling/README.md +++ b/.vortex/tooling/README.md @@ -57,9 +57,11 @@ your-project/ ├── .ahoy.yml ├── composer.json ├── scripts/ -│ ├── provision-10-example.sh # shipped example - copy or remove -│ ├── provision-20-migration.sh # shipped example - copy or remove -│ └── provision-30-custom.sh # your own hook script +│ ├── provision-00-enable-demo-modules.sh # shipped - demo site modules +│ ├── provision-10-enable-dev-modules.sh # shipped - development modules +│ ├── provision-20-migration.sh # shipped example - copy or remove +│ ├── provision-40-example.sh # shipped example - copy or remove +│ └── provision-50-custom.sh # your own hook script ├── vendor/ │ └── bin/vortex-provision # runs each provision-*.sh in order ├── web/ # Drupal web root @@ -68,9 +70,18 @@ your-project/ ``` The template ships runnable examples you can copy or remove - -[`scripts/provision-10-example.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-10-example.sh) +[`scripts/provision-40-example.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-40-example.sh) and [`scripts/provision-20-migration.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-20-migration.sh). + +It also ships two scripts that are not examples and that do real work in +non-production environments: +[`scripts/provision-00-enable-demo-modules.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-00-enable-demo-modules.sh) +enables the modules and the content model the demo site is built from, and +[`scripts/provision-10-enable-dev-modules.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-10-enable-dev-modules.sh) +enables the development modules. Keep them until you manage those modules +yourself. + See the [provisioning documentation](https://www.vortextemplate.com/docs/drupal/provision#running-custom-scripts) for the full reference. diff --git a/.vortex/tooling/tests/unit/provision-enable-demo-modules.bats b/.vortex/tooling/tests/unit/provision-enable-demo-modules.bats new file mode 100644 index 000000000..9d98a5d60 --- /dev/null +++ b/.vortex/tooling/tests/unit/provision-enable-demo-modules.bats @@ -0,0 +1,41 @@ +#!/usr/bin/env bats +## +# Unit tests for provision-00-enable-demo-modules.sh +# +# The environment-matching branch is covered end-to-end by 'provision.bats'; +# this file covers the boundary that those scenarios do not reach. +# +#shellcheck disable=SC2030,SC2031,SC2034 + +load ../_helper.bash + +@test "Provision demo modules: environment name containing a development name skip" { + pushd "${LOCAL_REPO_DIR}" >/dev/null || exit 1 + + create_global_command_wrapper "vendor/bin/drush" + + declare -a STEPS=( + # Get environment. + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # devops" + + # Expected output. + "Started demo modules operations." + "Environment: devops" + "Skipped demo modules operations in production environment." + + # Not expected. + "- Creating the content model." + "- Installing contrib modules." + "- Installing custom site modules." + "- Finished demo modules operations." + ) + + mocks="$(run_steps "setup")" + + run ./scripts/provision-00-enable-demo-modules.sh + assert_success + + run_steps "assert" "${mocks[@]}" + + popd >/dev/null || exit 1 +} diff --git a/.vortex/tooling/tests/unit/provision-enable-dev-modules.bats b/.vortex/tooling/tests/unit/provision-enable-dev-modules.bats new file mode 100644 index 000000000..e5959ae67 --- /dev/null +++ b/.vortex/tooling/tests/unit/provision-enable-dev-modules.bats @@ -0,0 +1,103 @@ +#!/usr/bin/env bats +## +# Unit tests for provision-10-enable-dev-modules.sh +# +#shellcheck disable=SC2030,SC2031,SC2034 + +load ../_helper.bash + +@test "Provision development modules: default flow in development environment" { + pushd "${LOCAL_REPO_DIR}" >/dev/null || exit 1 + + create_global_command_wrapper "vendor/bin/drush" + + declare -a STEPS=( + # Get environment. + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # local" + + # Development modules. + "@drush -y pm:install sdc_devel" + "@drush -y pm:install devel" + + # Expected output. + "Started development modules operations." + "Environment: local" + "Installing Single Directory Component development tools." + "Installed Single Directory Component development tools." + "Installing Devel module." + "Installed Devel module." + "Finished development modules operations." + + # Not expected. + "- Skipped installing development modules in production environment." + ) + + mocks="$(run_steps "setup")" + + run ./scripts/provision-10-enable-dev-modules.sh + assert_success + + run_steps "assert" "${mocks[@]}" + + popd >/dev/null || exit 1 +} + +@test "Provision development modules: environment name containing a development name skip" { + pushd "${LOCAL_REPO_DIR}" >/dev/null || exit 1 + + create_global_command_wrapper "vendor/bin/drush" + + declare -a STEPS=( + # Get environment. + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # devops" + + # Expected output. + "Started development modules operations." + "Environment: devops" + "Skipped installing development modules in production environment." + + # Not expected. + "- Installing Single Directory Component development tools." + "- Installing Devel module." + "- Finished development modules operations." + ) + + mocks="$(run_steps "setup")" + + run ./scripts/provision-10-enable-dev-modules.sh + assert_success + + run_steps "assert" "${mocks[@]}" + + popd >/dev/null || exit 1 +} + +@test "Provision development modules: production environment skip" { + pushd "${LOCAL_REPO_DIR}" >/dev/null || exit 1 + + create_global_command_wrapper "vendor/bin/drush" + + declare -a STEPS=( + # Get environment. + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # prod" + + # Expected output. + "Started development modules operations." + "Environment: prod" + "Skipped installing development modules in production environment." + + # Not expected. + "- Installing Single Directory Component development tools." + "- Installing Devel module." + "- Finished development modules operations." + ) + + mocks="$(run_steps "setup")" + + run ./scripts/provision-10-enable-dev-modules.sh + assert_success + + run_steps "assert" "${mocks[@]}" + + popd >/dev/null || exit 1 +} diff --git a/.vortex/tooling/tests/unit/provision-example.bats b/.vortex/tooling/tests/unit/provision-example.bats index eabfcd437..241a7d50d 100644 --- a/.vortex/tooling/tests/unit/provision-example.bats +++ b/.vortex/tooling/tests/unit/provision-example.bats @@ -1,6 +1,6 @@ #!/usr/bin/env bats ## -# Unit tests for provision-10-example.sh +# Unit tests for provision-40-example.sh # # The environment-matching branch is covered end-to-end by 'provision.bats'; # this file covers the boundary that those scenarios do not reach. @@ -22,18 +22,16 @@ load ../_helper.bash "Started example operations." "Environment: devops" "Skipped example operations in production environment." - "Finished example operations." # Not expected. "- Running example operations in non-production environment." - "- Creating the content model." - "- Installing contrib modules." - "- Installing Devel module." + "- Performing an example operation." + "- Finished example operations." ) mocks="$(run_steps "setup")" - run ./scripts/provision-10-example.sh + run ./scripts/provision-40-example.sh assert_success run_steps "assert" "${mocks[@]}" diff --git a/.vortex/tooling/tests/unit/provision.bats b/.vortex/tooling/tests/unit/provision.bats index 62fe2c618..e42116c4d 100644 --- a/.vortex/tooling/tests/unit/provision.bats +++ b/.vortex/tooling/tests/unit/provision.bats @@ -142,8 +142,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -160,24 +160,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -287,8 +302,8 @@ assert_provision_info() { "- Updated user 1 email." "Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -305,24 +320,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. "- Fresh database detected. Performing additional example operations." "Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -441,8 +471,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -459,24 +489,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -610,8 +655,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -628,24 +673,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -830,8 +890,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -848,24 +908,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -978,8 +1053,8 @@ assert_provision_info() { "- Updated user 1 email." "Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -996,24 +1071,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. "- Fresh database detected. Performing additional example operations." "Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -1133,8 +1223,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -1151,24 +1241,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -1284,14 +1389,27 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # prod" + " ==> Started demo modules operations." + " Environment: prod" + " Skipped demo modules operations in production environment." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # prod" + " ==> Started development modules operations." + " Environment: prod" + " Skipped installing development modules in production environment." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # prod" " ==> Started example operations." " Environment: prod" " Skipped example operations in production environment." - " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -1458,8 +1576,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -1476,24 +1594,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -1610,8 +1743,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -1628,24 +1761,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -1882,8 +2030,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -1900,24 +2048,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -2052,8 +2215,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -2070,24 +2233,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -2274,8 +2452,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -2292,24 +2470,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." @@ -2583,8 +2776,8 @@ assert_provision_info() { "- Updated user 1 email." "- Skipped database sanitization as VORTEX_PROVISION_SANITIZE_DB_SKIP is set to 1." - # Custom post-install script. - "Running custom post-install script './scripts/provision-10-example.sh'." + # Custom post-install scripts. + "Running custom post-install script './scripts/provision-00-enable-demo-modules.sh'." "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " > Setting site name." "@drush -y php:eval \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" @@ -2601,24 +2794,39 @@ assert_provision_info() { "@drush -y config-set clamav.settings mode_daemon_tcpip.hostname clamav" " > Installing Solr search modules." "@drush -y pm:install search_api search_api_solr" - " > Installing Single Directory Component development tools." - "@drush -y pm:install sdc_devel" - " > Installing Devel module." - "@drush -y pm:install devel" " > Installing custom site modules." "@drush -y pm:install ys_base" "@drush -y pm:install ys_search" "@drush -y pm:install ys_demo" " > Running deployment hooks." "@drush -y deploy:hook" + " ==> Started demo modules operations." + " Environment: ci" + " ==> Finished demo modules operations." + "Completed running of custom post-install script './scripts/provision-00-enable-demo-modules.sh'." + + "Running custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" + " > Installing Single Directory Component development tools." + "@drush -y pm:install sdc_devel" + " > Installing Devel module." + "@drush -y pm:install devel" + " ==> Started development modules operations." + " Environment: ci" + " ==> Finished development modules operations." + "Completed running of custom post-install script './scripts/provision-10-enable-dev-modules.sh'." + + "Running custom post-install script './scripts/provision-40-example.sh'." + "@drush -y php:eval print \Drupal\core\Site\Settings::get('environment'); # ci" " ==> Started example operations." " Environment: ci" " Running example operations in non-production environment." + " > Performing an example operation." # Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script. " Fresh database detected. Performing additional example operations." "- Existing database detected. Performing additional example operations." " ==> Finished example operations." - "Completed running of custom post-install script './scripts/provision-10-example.sh'." + "Completed running of custom post-install script './scripts/provision-40-example.sh'." # Disabling maintenance mode. "Disabling maintenance mode." diff --git a/scripts/provision-00-enable-demo-modules.sh b/scripts/provision-00-enable-demo-modules.sh new file mode 100755 index 000000000..03248cbad --- /dev/null +++ b/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,110 @@ +#!/usr/bin/env bash +## +# Enable the modules and the content model that the demo site is built from. +# +# This script is called during site provisioning via the provision script. +# +# Replace the operations below with your own once the site stops relying on the +# demo content. +# +# shellcheck disable=SC2086 + +set -eu +[ "${VORTEX_DEBUG-}" = "1" ] && set -x + +# ------------------------------------------------------------------------------ + +# @formatter:off +info() { printf " ==> %s\n" "${1}"; } +note() { printf " %s\n" "${1}"; } +task() { printf " > %s\n" "${1}"; } +pass() { printf " < %s\n" "${1}"; } +fail() { printf " ! %s\n" "${1}"; } +# @formatter:on + +drush() { ./vendor/bin/drush -y "$@"; } + +# ------------------------------------------------------------------------------ + +info "Started demo modules operations." + +environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" +note "Environment: ${environment}" + +if ! echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then + note "Skipped demo modules operations in production environment." + exit 0 +fi + +# The demo site modules attach behaviour to the 'page' content type, so it +# must exist before those modules are installed and their deploy hooks run. +task "Creating the content model." +# Guard against environments where the Drupal CLI is not available. +if [ -x ./vendor/bin/dr ]; then + ./vendor/bin/dr recipe "$(pwd)/recipes/page" --no-interaction +fi +pass "Created the content model." + +task "Setting site name." +drush php:eval "\Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" +pass "Set site name." + +# Use the core Navigation module as the administration interface and remove +# the classic Toolbar so the two admin systems never run at once. Uninstall +# only when Toolbar is actually enabled (it is absent on re-provision or a +# navigation-based database); a genuine uninstall failure must still abort. +task "Setting up the administration navigation." +drush pm:install navigation +if [ "$(drush php:eval "print \Drupal::moduleHandler()->moduleExists('toolbar');")" = "1" ]; then + drush pm:uninstall toolbar +fi +pass "Set up the administration navigation." + +#;< MODULES +task "Installing contrib modules." +drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap +pass "Installed contrib modules." +#;> MODULES + +#;< SERVICE_REDIS +task "Installing Redis module." +drush pm:install redis || true +pass "Installed Redis module." +#;> SERVICE_REDIS + +#;< SERVICE_CLAMAV +task "Installing and configuring ClamAV." +drush pm:install clamav +drush config-set clamav.settings mode_daemon_tcpip.hostname clamav +pass "Installed and configured ClamAV." +#;> SERVICE_CLAMAV + +#;< SERVICE_SOLR +task "Installing Solr search modules." +drush pm:install search_api search_api_solr +pass "Installed Solr search modules." +#;> SERVICE_SOLR + +# Enable custom site module and run its deployment hooks. +# +# Note that deployment hooks for already enabled modules have run in the +# parent "provision.sh" script. +task "Installing custom site modules." +#;< CUSTOM_MODULE_BASE +drush pm:install ys_base +#;> CUSTOM_MODULE_BASE + +#;< CUSTOM_MODULE_SEARCH +drush pm:install ys_search +#;> CUSTOM_MODULE_SEARCH + +#;< CUSTOM_MODULE_DEMO +drush pm:install ys_demo +#;> CUSTOM_MODULE_DEMO +pass "Installed custom site modules." + +task "Running deployment hooks." +drush deploy:hook +pass "Ran deployment hooks." + +info "Finished demo modules operations." diff --git a/scripts/provision-10-enable-dev-modules.sh b/scripts/provision-10-enable-dev-modules.sh new file mode 100755 index 000000000..bc95ebc94 --- /dev/null +++ b/scripts/provision-10-enable-dev-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash +## +# Enable development modules. +# +# This script is called during site provisioning via the provision script. +# +# Development modules are enabled here rather than in the example script so that +# they remain available after the example script is adjusted or removed. + +set -eu +[ "${VORTEX_DEBUG-}" = "1" ] && set -x + +# ------------------------------------------------------------------------------ + +# @formatter:off +info() { printf " ==> %s\n" "${1}"; } +note() { printf " %s\n" "${1}"; } +task() { printf " > %s\n" "${1}"; } +pass() { printf " < %s\n" "${1}"; } +fail() { printf " ! %s\n" "${1}"; } +# @formatter:on + +drush() { ./vendor/bin/drush -y "$@"; } + +# ------------------------------------------------------------------------------ + +info "Started development modules operations." + +environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" +note "Environment: ${environment}" + +if ! echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then + note "Skipped installing development modules in production environment." + exit 0 +fi + +#;< MODULE_SDC_DEVEL +task "Installing Single Directory Component development tools." +drush pm:install sdc_devel || true +pass "Installed Single Directory Component development tools." +#;> MODULE_SDC_DEVEL + +#;< MODULE_DEVEL +task "Installing Devel module." +drush pm:install devel || true +pass "Installed Devel module." +#;> MODULE_DEVEL + +info "Finished development modules operations." diff --git a/scripts/provision-10-example.sh b/scripts/provision-10-example.sh deleted file mode 100755 index b3022c5ee..000000000 --- a/scripts/provision-10-example.sh +++ /dev/null @@ -1,132 +0,0 @@ -#!/usr/bin/env bash -## -# Example of the custom per-project command that will run after website is installed. -# -# Clone this file and modify it to your needs or simply remove it. -# -# For ordering multiple commands, use a two-digit suffix for clarity and consistency. -# This approach ensures a clear sequence and avoids potential ordering issues. -# -# Example: -# - provision-10-example.sh -# - provision-20-example.sh -# - provision-30-example.sh -# -# shellcheck disable=SC2086 - -set -eu -[ "${VORTEX_DEBUG-}" = "1" ] && set -x - -# ------------------------------------------------------------------------------ - -info() { printf " ==> %s\n" "${1}"; } -note() { printf " %s\n" "${1}"; } -task() { printf " > %s\n" "${1}"; } -pass() { printf " < %s\n" "${1}"; } -fail() { printf " ! %s\n" "${1}"; } - -drush() { ./vendor/bin/drush -y "$@"; } - -info "Started example operations." - -environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" -note "Environment: ${environment}" - -# Perform operations based on the current environment. -if echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then - note "Running example operations in non-production environment." - - # The demo site modules attach behaviour to the 'page' content type, so it - # must exist before those modules are installed and their deploy hooks run. - task "Creating the content model." - # Guard against environments where the Drupal CLI is not available. - if [ -x ./vendor/bin/dr ]; then - ./vendor/bin/dr recipe "$(pwd)/recipes/page" --no-interaction - fi - pass "Created the content model." - - task "Setting site name." - drush php:eval "\Drupal::service('config.factory')->getEditable('system.site')->set('name', 'YOURSITE')->save();" - pass "Set site name." - - # Use the core Navigation module as the administration interface and remove - # the classic Toolbar so the two admin systems never run at once. Uninstall - # only when Toolbar is actually enabled (it is absent on re-provision or a - # navigation-based database); a genuine uninstall failure must still abort. - task "Setting up the administration navigation." - drush pm:install navigation - if [ "$(drush php:eval "print \Drupal::moduleHandler()->moduleExists('toolbar');")" = "1" ]; then - drush pm:uninstall toolbar - fi - pass "Set up the administration navigation." - - #;< MODULES - task "Installing contrib modules." - drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - #;> MODULES - - #;< SERVICE_REDIS - task "Installing Redis module." - drush pm:install redis || true - pass "Installed Redis module." - #;> SERVICE_REDIS - - #;< SERVICE_CLAMAV - task "Installing and configuring ClamAV." - drush pm:install clamav - drush config-set clamav.settings mode_daemon_tcpip.hostname clamav - pass "Installed and configured ClamAV." - #;> SERVICE_CLAMAV - - #;< SERVICE_SOLR - task "Installing Solr search modules." - drush pm:install search_api search_api_solr - pass "Installed Solr search modules." - #;> SERVICE_SOLR - - #;< MODULE_SDC_DEVEL - task "Installing Single Directory Component development tools." - drush pm:install sdc_devel || true - pass "Installed Single Directory Component development tools." - #;> MODULE_SDC_DEVEL - - #;< MODULE_DEVEL - task "Installing Devel module." - drush pm:install devel || true - pass "Installed Devel module." - #;> MODULE_DEVEL - - # Enable custom site module and run its deployment hooks. - # - # Note that deployment hooks for already enabled modules have run in the - # parent "provision.sh" script. - task "Installing custom site modules." - #;< CUSTOM_MODULE_BASE - drush pm:install ys_base - #;> CUSTOM_MODULE_BASE - - #;< CUSTOM_MODULE_SEARCH - drush pm:install ys_search - #;> CUSTOM_MODULE_SEARCH - - #;< CUSTOM_MODULE_DEMO - drush pm:install ys_demo - #;> CUSTOM_MODULE_DEMO - pass "Installed custom site modules." - - task "Running deployment hooks." - drush deploy:hook - pass "Ran deployment hooks." - - # Conditionally perform an action if this is a "fresh" database. - if [ "${VORTEX_PROVISION_OVERRIDE_DB:-0}" = "1" ]; then - note "Fresh database detected. Performing additional example operations." - else - note "Existing database detected. Performing additional example operations." - fi -else - note "Skipped example operations in production environment." -fi - -info "Finished example operations." diff --git a/scripts/provision-40-example.sh b/scripts/provision-40-example.sh new file mode 100755 index 000000000..89577aad6 --- /dev/null +++ b/scripts/provision-40-example.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +## +# Example of the custom per-project command that will run after website is installed. +# +# Clone this file and modify it to your needs or simply remove it. +# +# For ordering multiple commands, use a two-digit suffix for clarity and consistency. +# This approach ensures a clear sequence and avoids potential ordering issues. +# +# Example: +# - provision-40-example.sh +# - provision-50-example.sh +# - provision-60-example.sh + +set -eu +[ "${VORTEX_DEBUG-}" = "1" ] && set -x + +# ------------------------------------------------------------------------------ + +# @formatter:off +info() { printf " ==> %s\n" "${1}"; } +note() { printf " %s\n" "${1}"; } +task() { printf " > %s\n" "${1}"; } +pass() { printf " < %s\n" "${1}"; } +fail() { printf " ! %s\n" "${1}"; } +# @formatter:on + +drush() { ./vendor/bin/drush -y "$@"; } + +# ------------------------------------------------------------------------------ + +info "Started example operations." + +# Get the current environment from Drupal settings. +environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" +note "Environment: ${environment}" + +# Perform operations based on the current environment. +if ! echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then + note "Skipped example operations in production environment." + exit 0 +fi + +note "Running example operations in non-production environment." + +task "Performing an example operation." +note "Replace this with your own commands." +pass "Performed an example operation." + +# Conditionally perform an action if this is a "fresh" database. +if [ "${VORTEX_PROVISION_OVERRIDE_DB:-0}" = "1" ]; then + note "Fresh database detected. Performing additional example operations." +else + note "Existing database detected. Performing additional example operations." +fi + +info "Finished example operations." From 21cdc68b876fd913edc1dd80e9e30cd0975c3fd6 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 29 Jul 2026 12:46:36 +1000 Subject: [PATCH 2/7] Updated snapshots. --- .../provision-00-enable-demo-modules.sh | 96 +++++++++++++++ .../provision-10-enable-dev-modules.sh | 45 +++++++ .../_baseline/scripts/provision-10-example.sh | 114 ------------------ .../_baseline/scripts/provision-40-example.sh | 57 +++++++++ .../modules_no_devel_sdc_devel/.ahoy.yml | 15 +++ .../.github/workflows/build-test-deploy.yml | 19 +++ .../modules_no_devel_sdc_devel/composer.json | 16 +++ .../-provision-10-enable-dev-modules.sh | 0 .../Drupal/EnvironmentSettingsTest.php | 40 ++++++ .../includes/modules/-settings.devel.php | 0 10 files changed, 288 insertions(+), 114 deletions(-) create mode 100755 .vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-00-enable-demo-modules.sh create mode 100755 .vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-10-enable-dev-modules.sh delete mode 100755 .vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-10-example.sh create mode 100755 .vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-40-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/.ahoy.yml create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/.github/workflows/build-test-deploy.yml create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/composer.json create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/scripts/-provision-10-enable-dev-modules.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/tests/phpunit/Drupal/EnvironmentSettingsTest.php create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/web/sites/default/includes/modules/-settings.devel.php diff --git a/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-00-enable-demo-modules.sh new file mode 100755 index 000000000..35000ef9c --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,96 @@ +#!/usr/bin/env bash +## +# Enable the modules and the content model that the demo site is built from. +# +# This script is called during site provisioning via the provision script. +# +# Replace the operations below with your own once the site stops relying on the +# demo content. +# +# shellcheck disable=SC2086 + +set -eu +[ "${VORTEX_DEBUG-}" = "1" ] && set -x + +# ------------------------------------------------------------------------------ + +# @formatter:off +info() { printf " ==> %s\n" "${1}"; } +note() { printf " %s\n" "${1}"; } +task() { printf " > %s\n" "${1}"; } +pass() { printf " < %s\n" "${1}"; } +fail() { printf " ! %s\n" "${1}"; } +# @formatter:on + +drush() { ./vendor/bin/drush -y "$@"; } + +# ------------------------------------------------------------------------------ + +info "Started demo modules operations." + +environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" +note "Environment: ${environment}" + +if ! echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then + note "Skipped demo modules operations in production environment." + exit 0 +fi + +# The demo site modules attach behaviour to the 'page' content type, so it +# must exist before those modules are installed and their deploy hooks run. +task "Creating the content model." +# Guard against environments where the Drupal CLI is not available. +if [ -x ./vendor/bin/dr ]; then + ./vendor/bin/dr recipe "$(pwd)/recipes/page" --no-interaction +fi +pass "Created the content model." + +task "Setting site name." +drush php:eval "\Drupal::service('config.factory')->getEditable('system.site')->set('name', 'star wars')->save();" +pass "Set site name." + +# Use the core Navigation module as the administration interface and remove +# the classic Toolbar so the two admin systems never run at once. Uninstall +# only when Toolbar is actually enabled (it is absent on re-provision or a +# navigation-based database); a genuine uninstall failure must still abort. +task "Setting up the administration navigation." +drush pm:install navigation +if [ "$(drush php:eval "print \Drupal::moduleHandler()->moduleExists('toolbar');")" = "1" ]; then + drush pm:uninstall toolbar +fi +pass "Set up the administration navigation." + +task "Installing contrib modules." +drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap +pass "Installed contrib modules." + +task "Installing Redis module." +drush pm:install redis || true +pass "Installed Redis module." + +task "Installing and configuring ClamAV." +drush pm:install clamav +drush config-set clamav.settings mode_daemon_tcpip.hostname clamav +pass "Installed and configured ClamAV." + +task "Installing Solr search modules." +drush pm:install search_api search_api_solr +pass "Installed Solr search modules." + +# Enable custom site module and run its deployment hooks. +# +# Note that deployment hooks for already enabled modules have run in the +# parent "provision.sh" script. +task "Installing custom site modules." +drush pm:install sw_base + +drush pm:install sw_search + +drush pm:install sw_demo +pass "Installed custom site modules." + +task "Running deployment hooks." +drush deploy:hook +pass "Ran deployment hooks." + +info "Finished demo modules operations." diff --git a/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-10-enable-dev-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-10-enable-dev-modules.sh new file mode 100755 index 000000000..ddc2a8de5 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-10-enable-dev-modules.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash +## +# Enable development modules. +# +# This script is called during site provisioning via the provision script. +# +# Development modules are enabled here rather than in the example script so that +# they remain available after the example script is adjusted or removed. + +set -eu +[ "${VORTEX_DEBUG-}" = "1" ] && set -x + +# ------------------------------------------------------------------------------ + +# @formatter:off +info() { printf " ==> %s\n" "${1}"; } +note() { printf " %s\n" "${1}"; } +task() { printf " > %s\n" "${1}"; } +pass() { printf " < %s\n" "${1}"; } +fail() { printf " ! %s\n" "${1}"; } +# @formatter:on + +drush() { ./vendor/bin/drush -y "$@"; } + +# ------------------------------------------------------------------------------ + +info "Started development modules operations." + +environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" +note "Environment: ${environment}" + +if ! echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then + note "Skipped installing development modules in production environment." + exit 0 +fi + +task "Installing Single Directory Component development tools." +drush pm:install sdc_devel || true +pass "Installed Single Directory Component development tools." + +task "Installing Devel module." +drush pm:install devel || true +pass "Installed Devel module." + +info "Finished development modules operations." diff --git a/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-10-example.sh deleted file mode 100755 index be93f951f..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-10-example.sh +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/env bash -## -# Example of the custom per-project command that will run after website is installed. -# -# Clone this file and modify it to your needs or simply remove it. -# -# For ordering multiple commands, use a two-digit suffix for clarity and consistency. -# This approach ensures a clear sequence and avoids potential ordering issues. -# -# Example: -# - provision-10-example.sh -# - provision-20-example.sh -# - provision-30-example.sh -# -# shellcheck disable=SC2086 - -set -eu -[ "${VORTEX_DEBUG-}" = "1" ] && set -x - -# ------------------------------------------------------------------------------ - -info() { printf " ==> %s\n" "${1}"; } -note() { printf " %s\n" "${1}"; } -task() { printf " > %s\n" "${1}"; } -pass() { printf " < %s\n" "${1}"; } -fail() { printf " ! %s\n" "${1}"; } - -drush() { ./vendor/bin/drush -y "$@"; } - -info "Started example operations." - -environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" -note "Environment: ${environment}" - -# Perform operations based on the current environment. -if echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then - note "Running example operations in non-production environment." - - # The demo site modules attach behaviour to the 'page' content type, so it - # must exist before those modules are installed and their deploy hooks run. - task "Creating the content model." - # Guard against environments where the Drupal CLI is not available. - if [ -x ./vendor/bin/dr ]; then - ./vendor/bin/dr recipe "$(pwd)/recipes/page" --no-interaction - fi - pass "Created the content model." - - task "Setting site name." - drush php:eval "\Drupal::service('config.factory')->getEditable('system.site')->set('name', 'star wars')->save();" - pass "Set site name." - - # Use the core Navigation module as the administration interface and remove - # the classic Toolbar so the two admin systems never run at once. Uninstall - # only when Toolbar is actually enabled (it is absent on re-provision or a - # navigation-based database); a genuine uninstall failure must still abort. - task "Setting up the administration navigation." - drush pm:install navigation - if [ "$(drush php:eval "print \Drupal::moduleHandler()->moduleExists('toolbar');")" = "1" ]; then - drush pm:uninstall toolbar - fi - pass "Set up the administration navigation." - - task "Installing contrib modules." - drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." - drush pm:install redis || true - pass "Installed Redis module." - - task "Installing and configuring ClamAV." - drush pm:install clamav - drush config-set clamav.settings mode_daemon_tcpip.hostname clamav - pass "Installed and configured ClamAV." - - task "Installing Solr search modules." - drush pm:install search_api search_api_solr - pass "Installed Solr search modules." - - task "Installing Single Directory Component development tools." - drush pm:install sdc_devel || true - pass "Installed Single Directory Component development tools." - - task "Installing Devel module." - drush pm:install devel || true - pass "Installed Devel module." - - # Enable custom site module and run its deployment hooks. - # - # Note that deployment hooks for already enabled modules have run in the - # parent "provision.sh" script. - task "Installing custom site modules." - drush pm:install sw_base - - drush pm:install sw_search - - drush pm:install sw_demo - pass "Installed custom site modules." - - task "Running deployment hooks." - drush deploy:hook - pass "Ran deployment hooks." - - # Conditionally perform an action if this is a "fresh" database. - if [ "${VORTEX_PROVISION_OVERRIDE_DB:-0}" = "1" ]; then - note "Fresh database detected. Performing additional example operations." - else - note "Existing database detected. Performing additional example operations." - fi -else - note "Skipped example operations in production environment." -fi - -info "Finished example operations." diff --git a/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-40-example.sh b/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-40-example.sh new file mode 100755 index 000000000..89577aad6 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/provision-40-example.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +## +# Example of the custom per-project command that will run after website is installed. +# +# Clone this file and modify it to your needs or simply remove it. +# +# For ordering multiple commands, use a two-digit suffix for clarity and consistency. +# This approach ensures a clear sequence and avoids potential ordering issues. +# +# Example: +# - provision-40-example.sh +# - provision-50-example.sh +# - provision-60-example.sh + +set -eu +[ "${VORTEX_DEBUG-}" = "1" ] && set -x + +# ------------------------------------------------------------------------------ + +# @formatter:off +info() { printf " ==> %s\n" "${1}"; } +note() { printf " %s\n" "${1}"; } +task() { printf " > %s\n" "${1}"; } +pass() { printf " < %s\n" "${1}"; } +fail() { printf " ! %s\n" "${1}"; } +# @formatter:on + +drush() { ./vendor/bin/drush -y "$@"; } + +# ------------------------------------------------------------------------------ + +info "Started example operations." + +# Get the current environment from Drupal settings. +environment="$(drush php:eval "print \Drupal\core\Site\Settings::get('environment');")" +note "Environment: ${environment}" + +# Perform operations based on the current environment. +if ! echo "${environment}" | grep -qxF -e local -e ci -e dev -e stage; then + note "Skipped example operations in production environment." + exit 0 +fi + +note "Running example operations in non-production environment." + +task "Performing an example operation." +note "Replace this with your own commands." +pass "Performed an example operation." + +# Conditionally perform an action if this is a "fresh" database. +if [ "${VORTEX_PROVISION_OVERRIDE_DB:-0}" = "1" ]; then + note "Fresh database detected. Performing additional example operations." +else + note "Existing database detected. Performing additional example operations." +fi + +info "Finished example operations." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/.ahoy.yml b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/.ahoy.yml new file mode 100644 index 000000000..6645f25fd --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/.ahoy.yml @@ -0,0 +1,15 @@ +@@ -215,14 +215,6 @@ + cmd: | + ahoy cli vendor/bin/gherkinlint lint tests/behat/features + +- lint-sdc: +- usage: Validate Single Directory Components (requires a provisioned site). +- cmd: | +- ahoy cli " \ +- output=\$(vendor/bin/drush sdc-devel:validate \${DRUPAL_THEME} 2>&1); \ +- echo \"\${output}\"; \ +- if echo \"\${output}\" | grep -qE 'Critical|Errors?|Warnings?'; then echo 'SDC validation reported problems.'; exit 1; fi" +- + lint-fix: + usage: Fix lint issues of back-end and front-end code. + cmd: | diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/.github/workflows/build-test-deploy.yml b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/.github/workflows/build-test-deploy.yml new file mode 100644 index 000000000..7a4c83d43 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/.github/workflows/build-test-deploy.yml @@ -0,0 +1,19 @@ +@@ -467,18 +467,6 @@ + env: + VORTEX_CI_CODE_COVERAGE_THRESHOLD: ${{ vars.VORTEX_CI_CODE_COVERAGE_THRESHOLD || '90' }} + +- - name: Validate Single Directory Components +- if: ${{ matrix.instance == 0 || strategy.job-total == 1 }} +- run: | +- [ "${VORTEX_FRONTEND_BUILD_SKIP:-0}" -eq 1 ] && exit 0 +- output=$(docker compose exec -T cli vendor/bin/drush sdc-devel:validate "${DRUPAL_THEME}" 2>&1) +- echo "${output}" +- if echo "${output}" | grep -qE 'Critical|Errors?|Warnings?'; then +- echo "SDC validation reported problems." +- exit 1 +- fi +- continue-on-error: ${{ vars.VORTEX_CI_SDC_DEVEL_IGNORE_FAILURE == '1' }} +- + - name: Test with Behat + run: | + # shellcheck disable=SC2170 diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/composer.json b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/composer.json new file mode 100644 index 000000000..3ed17cf05 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/composer.json @@ -0,0 +1,16 @@ +@@ -14,7 +14,6 @@ + "drupal/config_update": "__VERSION__", + "drupal/core-composer-scaffold": "__VERSION__", + "drupal/core-recommended": "__VERSION__", +- "drupal/devel": "__VERSION__", + "drupal/drupal_helpers": "__VERSION__", + "drupal/environment_indicator": "__VERSION__", + "drupal/generated_content": "__VERSION__", +@@ -24,7 +23,6 @@ + "drupal/redis": "__VERSION__", + "drupal/reroute_email": "__VERSION__", + "drupal/robotstxt": "__VERSION__", +- "drupal/sdc_devel": "__VERSION__", + "drupal/search_api": "__VERSION__", + "drupal/search_api_solr": "__VERSION__", + "drupal/seckit": "__VERSION__", diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/scripts/-provision-10-enable-dev-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/scripts/-provision-10-enable-dev-modules.sh new file mode 100644 index 000000000..e69de29bb diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/tests/phpunit/Drupal/EnvironmentSettingsTest.php b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/tests/phpunit/Drupal/EnvironmentSettingsTest.php new file mode 100644 index 000000000..05383d1ec --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/tests/phpunit/Drupal/EnvironmentSettingsTest.php @@ -0,0 +1,40 @@ +@@ -87,7 +87,6 @@ + + $settings['auto_create_htaccess'] = FALSE; + $settings['config_exclude_modules'] = [ +- 'devel', + 'generated_content', + 'testmode', + ]; +@@ -169,7 +168,6 @@ + // Verify settings overrides. + $settings['auto_create_htaccess'] = FALSE; + $settings['config_exclude_modules'] = [ +- 'devel', + 'generated_content', + 'testmode', + ]; +@@ -225,7 +223,6 @@ + + $settings['auto_create_htaccess'] = FALSE; + $settings['config_exclude_modules'] = [ +- 'devel', + 'generated_content', + 'testmode', + ]; +@@ -281,7 +278,6 @@ + + $settings['auto_create_htaccess'] = FALSE; + $settings['config_exclude_modules'] = [ +- 'devel', + 'generated_content', + 'testmode', + ]; +@@ -339,7 +335,6 @@ + + $settings['auto_create_htaccess'] = FALSE; + $settings['config_exclude_modules'] = [ +- 'devel', + 'generated_content', + 'testmode', + ]; diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/web/sites/default/includes/modules/-settings.devel.php b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel_sdc_devel/web/sites/default/includes/modules/-settings.devel.php new file mode 100644 index 000000000..e69de29bb From e766ec34f47f8ec3b079ebb6d20fdce8ded63c28 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 29 Jul 2026 12:52:19 +1000 Subject: [PATCH 3/7] Updated snapshots. --- .../provision-00-enable-demo-modules.sh | 8 +++++ .../scripts/provision-10-example.sh | 8 ----- .../provision-00-enable-demo-modules.sh | 8 +++++ .../scripts/provision-10-example.sh | 8 ----- .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 12 ++++++++ .../scripts/provision-10-example.sh | 12 -------- .../provision-00-enable-demo-modules.sh | 20 +++++++++++++ .../scripts/provision-10-example.sh | 20 ------------- .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-10-enable-dev-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 11 ------- .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-10-enable-dev-modules.sh | 11 +++++++ .../scripts/provision-10-example.sh | 11 ------- .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../provision-00-enable-demo-modules.sh | 9 ++++++ .../scripts/provision-10-example.sh | 9 ------ .../-provision-10-enable-dev-modules.sh | 0 .../provision-00-enable-demo-modules.sh | 11 +++++++ .../scripts/provision-10-example.sh | 26 ----------------- .../provision-00-enable-demo-modules.sh | 24 +++++++++++++++ .../names/scripts/provision-10-example.sh | 24 --------------- .../provision-00-enable-demo-modules.sh | 11 +++++++ .../scripts/provision-10-example.sh | 11 ------- .../provision-00-enable-demo-modules.sh | 12 ++++++++ .../scripts/provision-10-example.sh | 12 -------- .../provision-00-enable-demo-modules.sh | 12 ++++++++ .../scripts/provision-10-example.sh | 12 -------- .../provision-00-enable-demo-modules.sh | 11 +++++++ .../scripts/provision-10-example.sh | 11 ------- .../provision-00-enable-demo-modules.sh | 20 +++++++++++++ .../scripts/provision-10-example.sh | 20 ------------- .../provision-00-enable-demo-modules.sh | 29 +++++++++++++++++++ .../scripts/provision-10-example.sh | 29 ------------------- 57 files changed, 324 insertions(+), 341 deletions(-) create mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_no_base/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_no_base/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_no_demo/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_no_demo/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_no_search/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_no_search/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_none/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_none/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_search_without_solr/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/custom_modules_search_without_solr/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_coffee/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_coffee/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_config_split/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_config_split/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_config_update/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_config_update/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_devel/scripts/provision-10-enable-dev-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_devel/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_environment_indicator/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_environment_indicator/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_navigation_extra_tools/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_navigation_extra_tools/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_pathauto/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_pathauto/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_redirect/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_redirect/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_reroute_email/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_reroute_email/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_robotstxt/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_robotstxt/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_sdc_devel/scripts/provision-10-enable-dev-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_sdc_devel/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_seckit_shield_stage_file_proxy/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_seckit_shield_stage_file_proxy/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_shield/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_shield/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_stage_file_proxy/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_stage_file_proxy/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_xmlsitemap/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_no_xmlsitemap/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/-provision-10-enable-dev-modules.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/names/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/names/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/non_interactive_config_file/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/non_interactive_config_file/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/non_interactive_config_string/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/non_interactive_config_string/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/services_no_clamav/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/services_no_clamav/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/services_no_redis/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/services_no_redis/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/services_no_solr/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/services_no_solr/scripts/provision-10-example.sh create mode 100644 .vortex/installer/tests/Fixtures/handler_process/services_none/scripts/provision-00-enable-demo-modules.sh delete mode 100644 .vortex/installer/tests/Fixtures/handler_process/services_none/scripts/provision-10-example.sh diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_base/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_base/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..d525dc46a --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_base/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,8 @@ +@@ -82,7 +82,6 @@ + # Note that deployment hooks for already enabled modules have run in the + # parent "provision.sh" script. + task "Installing custom site modules." +-drush pm:install sw_base + + drush pm:install sw_search + diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_base/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_base/scripts/provision-10-example.sh deleted file mode 100644 index dd5f99452..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_base/scripts/provision-10-example.sh +++ /dev/null @@ -1,8 +0,0 @@ -@@ -90,7 +90,6 @@ - # Note that deployment hooks for already enabled modules have run in the - # parent "provision.sh" script. - task "Installing custom site modules." -- drush pm:install sw_base - - drush pm:install sw_search - diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_demo/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_demo/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..aa70722f2 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_demo/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,8 @@ +@@ -86,7 +86,6 @@ + + drush pm:install sw_search + +-drush pm:install sw_demo + pass "Installed custom site modules." + + task "Running deployment hooks." diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_demo/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_demo/scripts/provision-10-example.sh deleted file mode 100644 index e1b48b4fd..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_demo/scripts/provision-10-example.sh +++ /dev/null @@ -1,8 +0,0 @@ -@@ -94,7 +94,6 @@ - - drush pm:install sw_search - -- drush pm:install sw_demo - pass "Installed custom site modules." - - task "Running deployment hooks." diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_search/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_search/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..aa2194e8c --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_search/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -84,8 +84,6 @@ + task "Installing custom site modules." + drush pm:install sw_base + +-drush pm:install sw_search +- + drush pm:install sw_demo + pass "Installed custom site modules." + diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_search/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_search/scripts/provision-10-example.sh deleted file mode 100644 index 088ea6fc3..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_no_search/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -92,8 +92,6 @@ - task "Installing custom site modules." - drush pm:install sw_base - -- drush pm:install sw_search -- - drush pm:install sw_demo - pass "Installed custom site modules." - diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_none/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_none/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..18c38b8c5 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_none/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,12 @@ +@@ -82,11 +82,7 @@ + # Note that deployment hooks for already enabled modules have run in the + # parent "provision.sh" script. + task "Installing custom site modules." +-drush pm:install sw_base + +-drush pm:install sw_search +- +-drush pm:install sw_demo + pass "Installed custom site modules." + + task "Running deployment hooks." diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_none/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_none/scripts/provision-10-example.sh deleted file mode 100644 index e1d2c24aa..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_none/scripts/provision-10-example.sh +++ /dev/null @@ -1,12 +0,0 @@ -@@ -90,11 +90,7 @@ - # Note that deployment hooks for already enabled modules have run in the - # parent "provision.sh" script. - task "Installing custom site modules." -- drush pm:install sw_base - -- drush pm:install sw_search -- -- drush pm:install sw_demo - pass "Installed custom site modules." - - task "Running deployment hooks." diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_search_without_solr/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_search_without_solr/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..8fb9c4a2e --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_search_without_solr/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,20 @@ +@@ -73,10 +73,6 @@ + drush config-set clamav.settings mode_daemon_tcpip.hostname clamav + pass "Installed and configured ClamAV." + +-task "Installing Solr search modules." +-drush pm:install search_api search_api_solr +-pass "Installed Solr search modules." +- + # Enable custom site module and run its deployment hooks. + # + # Note that deployment hooks for already enabled modules have run in the +@@ -83,8 +79,6 @@ + # parent "provision.sh" script. + task "Installing custom site modules." + drush pm:install sw_base +- +-drush pm:install sw_search + + drush pm:install sw_demo + pass "Installed custom site modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_search_without_solr/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/custom_modules_search_without_solr/scripts/provision-10-example.sh deleted file mode 100644 index aa262efb3..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/custom_modules_search_without_solr/scripts/provision-10-example.sh +++ /dev/null @@ -1,20 +0,0 @@ -@@ -73,10 +73,6 @@ - drush config-set clamav.settings mode_daemon_tcpip.hostname clamav - pass "Installed and configured ClamAV." - -- task "Installing Solr search modules." -- drush pm:install search_api search_api_solr -- pass "Installed Solr search modules." -- - task "Installing Single Directory Component development tools." - drush pm:install sdc_devel || true - pass "Installed Single Directory Component development tools." -@@ -91,8 +87,6 @@ - # parent "provision.sh" script. - task "Installing custom site modules." - drush pm:install sw_base -- -- drush pm:install sw_search - - drush pm:install sw_demo - pass "Installed custom site modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_coffee/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_coffee/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..dfcc68819 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_coffee/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_coffee/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_coffee/scripts/provision-10-example.sh deleted file mode 100644 index a58b82329..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_coffee/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_split/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_split/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..9857ee02d --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_split/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_split/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_split/scripts/provision-10-example.sh deleted file mode 100644 index f7b9af590..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_split/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_update/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_update/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..c1250d1c3 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_update/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_update/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_update/scripts/provision-10-example.sh deleted file mode 100644 index 06149a2d6..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_config_update/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel/scripts/provision-10-enable-dev-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel/scripts/provision-10-enable-dev-modules.sh new file mode 100644 index 000000000..e20db82e3 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel/scripts/provision-10-enable-dev-modules.sh @@ -0,0 +1,9 @@ +@@ -38,8 +38,4 @@ + drush pm:install sdc_devel || true + pass "Installed Single Directory Component development tools." + +-task "Installing Devel module." +-drush pm:install devel || true +-pass "Installed Devel module." +- + info "Finished development modules operations." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel/scripts/provision-10-example.sh deleted file mode 100644 index 2fc28bb55..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_devel/scripts/provision-10-example.sh +++ /dev/null @@ -1,11 +0,0 @@ -@@ -81,10 +81,6 @@ - drush pm:install sdc_devel || true - pass "Installed Single Directory Component development tools." - -- task "Installing Devel module." -- drush pm:install devel || true -- pass "Installed Devel module." -- - # Enable custom site module and run its deployment hooks. - # - # Note that deployment hooks for already enabled modules have run in the diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_environment_indicator/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_environment_indicator/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..aa4e98b55 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_environment_indicator/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_environment_indicator/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_environment_indicator/scripts/provision-10-example.sh deleted file mode 100644 index c8862efdd..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_environment_indicator/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_navigation_extra_tools/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_navigation_extra_tools/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..83900fa05 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_navigation_extra_tools/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_navigation_extra_tools/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_navigation_extra_tools/scripts/provision-10-example.sh deleted file mode 100644 index ad94a4c6c..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_navigation_extra_tools/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_pathauto/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_pathauto/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..9138c9109 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_pathauto/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_pathauto/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_pathauto/scripts/provision-10-example.sh deleted file mode 100644 index 23ae09e4a..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_pathauto/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_redirect/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_redirect/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..54a06eb83 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_redirect/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_redirect/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_redirect/scripts/provision-10-example.sh deleted file mode 100644 index 302cb05ed..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_redirect/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_reroute_email/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_reroute_email/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..baa18c322 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_reroute_email/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_reroute_email/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_reroute_email/scripts/provision-10-example.sh deleted file mode 100644 index 8ea23007e..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_reroute_email/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_robotstxt/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_robotstxt/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..2ece4a67c --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_robotstxt/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_robotstxt/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_robotstxt/scripts/provision-10-example.sh deleted file mode 100644 index 84d6380ce..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_robotstxt/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_sdc_devel/scripts/provision-10-enable-dev-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_sdc_devel/scripts/provision-10-enable-dev-modules.sh new file mode 100644 index 000000000..db8fceb9c --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_sdc_devel/scripts/provision-10-enable-dev-modules.sh @@ -0,0 +1,11 @@ +@@ -34,10 +34,6 @@ + exit 0 + fi + +-task "Installing Single Directory Component development tools." +-drush pm:install sdc_devel || true +-pass "Installed Single Directory Component development tools." +- + task "Installing Devel module." + drush pm:install devel || true + pass "Installed Devel module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_sdc_devel/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_sdc_devel/scripts/provision-10-example.sh deleted file mode 100644 index f33db88f2..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_sdc_devel/scripts/provision-10-example.sh +++ /dev/null @@ -1,11 +0,0 @@ -@@ -77,10 +77,6 @@ - drush pm:install search_api search_api_solr - pass "Installed Solr search modules." - -- task "Installing Single Directory Component development tools." -- drush pm:install sdc_devel || true -- pass "Installed Single Directory Component development tools." -- - task "Installing Devel module." - drush pm:install devel || true - pass "Installed Devel module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_seckit_shield_stage_file_proxy/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_seckit_shield_stage_file_proxy/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..ee668cff0 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_seckit_shield_stage_file_proxy/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_seckit_shield_stage_file_proxy/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_seckit_shield_stage_file_proxy/scripts/provision-10-example.sh deleted file mode 100644 index bd8582c2b..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_seckit_shield_stage_file_proxy/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_shield/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_shield/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..db1a6095b --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_shield/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt stage_file_proxy xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_shield/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_shield/scripts/provision-10-example.sh deleted file mode 100644 index a90a714c7..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_shield/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt stage_file_proxy xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_stage_file_proxy/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_stage_file_proxy/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..953073569 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_stage_file_proxy/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield xmlsitemap + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_stage_file_proxy/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_stage_file_proxy/scripts/provision-10-example.sh deleted file mode 100644 index e8b204ae9..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_stage_file_proxy/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield xmlsitemap - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_xmlsitemap/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_xmlsitemap/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..8f2c9993b --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_no_xmlsitemap/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,9 @@ +@@ -61,7 +61,7 @@ + pass "Set up the administration navigation." + + task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap ++drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy + pass "Installed contrib modules." + + task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_no_xmlsitemap/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_no_xmlsitemap/scripts/provision-10-example.sh deleted file mode 100644 index 48c0af84f..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_no_xmlsitemap/scripts/provision-10-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -@@ -61,7 +61,7 @@ - pass "Set up the administration navigation." - - task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -+ drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy - pass "Installed contrib modules." - - task "Installing Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/-provision-10-enable-dev-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/-provision-10-enable-dev-modules.sh new file mode 100644 index 000000000..e69de29bb diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..8cb7355b3 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,11 @@ +@@ -60,10 +60,6 @@ + fi + pass "Set up the administration navigation." + +-task "Installing contrib modules." +-drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap +-pass "Installed contrib modules." +- + task "Installing Redis module." + drush pm:install redis || true + pass "Installed Redis module." diff --git a/.vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/provision-10-example.sh deleted file mode 100644 index 20d7eb3de..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/modules_none/scripts/provision-10-example.sh +++ /dev/null @@ -1,26 +0,0 @@ -@@ -60,10 +60,6 @@ - fi - pass "Set up the administration navigation." - -- task "Installing contrib modules." -- drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap -- pass "Installed contrib modules." -- - task "Installing Redis module." - drush pm:install redis || true - pass "Installed Redis module." -@@ -76,14 +72,6 @@ - task "Installing Solr search modules." - drush pm:install search_api search_api_solr - pass "Installed Solr search modules." -- -- task "Installing Single Directory Component development tools." -- drush pm:install sdc_devel || true -- pass "Installed Single Directory Component development tools." -- -- task "Installing Devel module." -- drush pm:install devel || true -- pass "Installed Devel module." - - # Enable custom site module and run its deployment hooks. - # diff --git a/.vortex/installer/tests/Fixtures/handler_process/names/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/names/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..5958575bb --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/names/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,24 @@ +@@ -46,7 +46,7 @@ + pass "Created the content model." + + task "Setting site name." +-drush php:eval "\Drupal::service('config.factory')->getEditable('system.site')->set('name', 'star wars')->save();" ++drush php:eval "\Drupal::service('config.factory')->getEditable('system.site')->set('name', 'New hope')->save();" + pass "Set site name." + + # Use the core Navigation module as the administration interface and remove +@@ -82,11 +82,11 @@ + # Note that deployment hooks for already enabled modules have run in the + # parent "provision.sh" script. + task "Installing custom site modules." +-drush pm:install sw_base ++drush pm:install the_force_base + +-drush pm:install sw_search ++drush pm:install the_force_search + +-drush pm:install sw_demo ++drush pm:install the_force_demo + pass "Installed custom site modules." + + task "Running deployment hooks." diff --git a/.vortex/installer/tests/Fixtures/handler_process/names/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/names/scripts/provision-10-example.sh deleted file mode 100644 index 6c757998c..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/names/scripts/provision-10-example.sh +++ /dev/null @@ -1,24 +0,0 @@ -@@ -46,7 +46,7 @@ - pass "Created the content model." - - task "Setting site name." -- drush php:eval "\Drupal::service('config.factory')->getEditable('system.site')->set('name', 'star wars')->save();" -+ drush php:eval "\Drupal::service('config.factory')->getEditable('system.site')->set('name', 'New hope')->save();" - pass "Set site name." - - # Use the core Navigation module as the administration interface and remove -@@ -90,11 +90,11 @@ - # Note that deployment hooks for already enabled modules have run in the - # parent "provision.sh" script. - task "Installing custom site modules." -- drush pm:install sw_base -+ drush pm:install the_force_base - -- drush pm:install sw_search -+ drush pm:install the_force_search - -- drush pm:install sw_demo -+ drush pm:install the_force_demo - pass "Installed custom site modules." - - task "Running deployment hooks." diff --git a/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_file/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_file/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..900b3bc87 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_file/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,11 @@ +@@ -64,10 +64,6 @@ + drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + +-task "Installing Redis module." +-drush pm:install redis || true +-pass "Installed Redis module." +- + task "Installing and configuring ClamAV." + drush pm:install clamav + drush config-set clamav.settings mode_daemon_tcpip.hostname clamav diff --git a/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_file/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_file/scripts/provision-10-example.sh deleted file mode 100644 index 94b64bb83..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_file/scripts/provision-10-example.sh +++ /dev/null @@ -1,11 +0,0 @@ -@@ -64,10 +64,6 @@ - drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - -- task "Installing Redis module." -- drush pm:install redis || true -- pass "Installed Redis module." -- - task "Installing and configuring ClamAV." - drush pm:install clamav - drush config-set clamav.settings mode_daemon_tcpip.hostname clamav diff --git a/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_string/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_string/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..99920b4dd --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_string/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,12 @@ +@@ -68,11 +68,6 @@ + drush pm:install redis || true + pass "Installed Redis module." + +-task "Installing and configuring ClamAV." +-drush pm:install clamav +-drush config-set clamav.settings mode_daemon_tcpip.hostname clamav +-pass "Installed and configured ClamAV." +- + task "Installing Solr search modules." + drush pm:install search_api search_api_solr + pass "Installed Solr search modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_string/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_string/scripts/provision-10-example.sh deleted file mode 100644 index f0d0c6eeb..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/non_interactive_config_string/scripts/provision-10-example.sh +++ /dev/null @@ -1,12 +0,0 @@ -@@ -68,11 +68,6 @@ - drush pm:install redis || true - pass "Installed Redis module." - -- task "Installing and configuring ClamAV." -- drush pm:install clamav -- drush config-set clamav.settings mode_daemon_tcpip.hostname clamav -- pass "Installed and configured ClamAV." -- - task "Installing Solr search modules." - drush pm:install search_api search_api_solr - pass "Installed Solr search modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/services_no_clamav/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/services_no_clamav/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..99920b4dd --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/services_no_clamav/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,12 @@ +@@ -68,11 +68,6 @@ + drush pm:install redis || true + pass "Installed Redis module." + +-task "Installing and configuring ClamAV." +-drush pm:install clamav +-drush config-set clamav.settings mode_daemon_tcpip.hostname clamav +-pass "Installed and configured ClamAV." +- + task "Installing Solr search modules." + drush pm:install search_api search_api_solr + pass "Installed Solr search modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/services_no_clamav/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/services_no_clamav/scripts/provision-10-example.sh deleted file mode 100644 index f0d0c6eeb..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/services_no_clamav/scripts/provision-10-example.sh +++ /dev/null @@ -1,12 +0,0 @@ -@@ -68,11 +68,6 @@ - drush pm:install redis || true - pass "Installed Redis module." - -- task "Installing and configuring ClamAV." -- drush pm:install clamav -- drush config-set clamav.settings mode_daemon_tcpip.hostname clamav -- pass "Installed and configured ClamAV." -- - task "Installing Solr search modules." - drush pm:install search_api search_api_solr - pass "Installed Solr search modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/services_no_redis/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/services_no_redis/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..900b3bc87 --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/services_no_redis/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,11 @@ +@@ -64,10 +64,6 @@ + drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + +-task "Installing Redis module." +-drush pm:install redis || true +-pass "Installed Redis module." +- + task "Installing and configuring ClamAV." + drush pm:install clamav + drush config-set clamav.settings mode_daemon_tcpip.hostname clamav diff --git a/.vortex/installer/tests/Fixtures/handler_process/services_no_redis/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/services_no_redis/scripts/provision-10-example.sh deleted file mode 100644 index 94b64bb83..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/services_no_redis/scripts/provision-10-example.sh +++ /dev/null @@ -1,11 +0,0 @@ -@@ -64,10 +64,6 @@ - drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - -- task "Installing Redis module." -- drush pm:install redis || true -- pass "Installed Redis module." -- - task "Installing and configuring ClamAV." - drush pm:install clamav - drush config-set clamav.settings mode_daemon_tcpip.hostname clamav diff --git a/.vortex/installer/tests/Fixtures/handler_process/services_no_solr/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/services_no_solr/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..8fb9c4a2e --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/services_no_solr/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,20 @@ +@@ -73,10 +73,6 @@ + drush config-set clamav.settings mode_daemon_tcpip.hostname clamav + pass "Installed and configured ClamAV." + +-task "Installing Solr search modules." +-drush pm:install search_api search_api_solr +-pass "Installed Solr search modules." +- + # Enable custom site module and run its deployment hooks. + # + # Note that deployment hooks for already enabled modules have run in the +@@ -83,8 +79,6 @@ + # parent "provision.sh" script. + task "Installing custom site modules." + drush pm:install sw_base +- +-drush pm:install sw_search + + drush pm:install sw_demo + pass "Installed custom site modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/services_no_solr/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/services_no_solr/scripts/provision-10-example.sh deleted file mode 100644 index aa262efb3..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/services_no_solr/scripts/provision-10-example.sh +++ /dev/null @@ -1,20 +0,0 @@ -@@ -73,10 +73,6 @@ - drush config-set clamav.settings mode_daemon_tcpip.hostname clamav - pass "Installed and configured ClamAV." - -- task "Installing Solr search modules." -- drush pm:install search_api search_api_solr -- pass "Installed Solr search modules." -- - task "Installing Single Directory Component development tools." - drush pm:install sdc_devel || true - pass "Installed Single Directory Component development tools." -@@ -91,8 +87,6 @@ - # parent "provision.sh" script. - task "Installing custom site modules." - drush pm:install sw_base -- -- drush pm:install sw_search - - drush pm:install sw_demo - pass "Installed custom site modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/services_none/scripts/provision-00-enable-demo-modules.sh b/.vortex/installer/tests/Fixtures/handler_process/services_none/scripts/provision-00-enable-demo-modules.sh new file mode 100644 index 000000000..be740471e --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/services_none/scripts/provision-00-enable-demo-modules.sh @@ -0,0 +1,29 @@ +@@ -64,19 +64,6 @@ + drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap + pass "Installed contrib modules." + +-task "Installing Redis module." +-drush pm:install redis || true +-pass "Installed Redis module." +- +-task "Installing and configuring ClamAV." +-drush pm:install clamav +-drush config-set clamav.settings mode_daemon_tcpip.hostname clamav +-pass "Installed and configured ClamAV." +- +-task "Installing Solr search modules." +-drush pm:install search_api search_api_solr +-pass "Installed Solr search modules." +- + # Enable custom site module and run its deployment hooks. + # + # Note that deployment hooks for already enabled modules have run in the +@@ -83,8 +70,6 @@ + # parent "provision.sh" script. + task "Installing custom site modules." + drush pm:install sw_base +- +-drush pm:install sw_search + + drush pm:install sw_demo + pass "Installed custom site modules." diff --git a/.vortex/installer/tests/Fixtures/handler_process/services_none/scripts/provision-10-example.sh b/.vortex/installer/tests/Fixtures/handler_process/services_none/scripts/provision-10-example.sh deleted file mode 100644 index 5664d6aa5..000000000 --- a/.vortex/installer/tests/Fixtures/handler_process/services_none/scripts/provision-10-example.sh +++ /dev/null @@ -1,29 +0,0 @@ -@@ -64,19 +64,6 @@ - drush pm:install coffee config_split config_update media environment_indicator navigation_extra_tools pathauto redirect reroute_email robotstxt shield stage_file_proxy xmlsitemap - pass "Installed contrib modules." - -- task "Installing Redis module." -- drush pm:install redis || true -- pass "Installed Redis module." -- -- task "Installing and configuring ClamAV." -- drush pm:install clamav -- drush config-set clamav.settings mode_daemon_tcpip.hostname clamav -- pass "Installed and configured ClamAV." -- -- task "Installing Solr search modules." -- drush pm:install search_api search_api_solr -- pass "Installed Solr search modules." -- - task "Installing Single Directory Component development tools." - drush pm:install sdc_devel || true - pass "Installed Single Directory Component development tools." -@@ -91,8 +78,6 @@ - # parent "provision.sh" script. - task "Installing custom site modules." - drush pm:install sw_base -- -- drush pm:install sw_search - - drush pm:install sw_demo - pass "Installed custom site modules." From f8d7087baad72af7cc8442c35755cf9205899f59 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 29 Jul 2026 13:00:04 +1000 Subject: [PATCH 4/7] [#2848] Aligned the provision scripts table in the documentation. --- .vortex/docs/content/drupal/provision.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.vortex/docs/content/drupal/provision.mdx b/.vortex/docs/content/drupal/provision.mdx index 3e891c438..aec45becd 100644 --- a/.vortex/docs/content/drupal/provision.mdx +++ b/.vortex/docs/content/drupal/provision.mdx @@ -241,13 +241,13 @@ e.g., `provision-50-custom.sh`, `provision-60-another-custom.sh`. **Vortex** ships the following scripts: -| Script | Purpose | -|------------------------------------------|-------------------------------------------------------------| -| `provision-00-enable-demo-modules.sh` | Enables the modules and content model the demo site uses | -| `provision-10-enable-dev-modules.sh` | Enables the development modules | -| `provision-20-migration.sh` | Runs the content migration | -| `provision-30-search-index.sh` | Rebuilds the search index | -| `provision-40-example.sh` | A runnable example that performs no operations | +| Script | Purpose | +|---------------------------------------|----------------------------------------------------------| +| `provision-00-enable-demo-modules.sh` | Enables the modules and content model the demo site uses | +| `provision-10-enable-dev-modules.sh` | Enables the development modules | +| `provision-20-migration.sh` | Runs the content migration | +| `provision-30-search-index.sh` | Rebuilds the search index | +| `provision-40-example.sh` | A runnable example that performs no operations | ### Conditional execution From 6776133c2148de324b691fbf92c4c2c5176b9340 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 29 Jul 2026 13:05:08 +1000 Subject: [PATCH 5/7] [#2848] Listed every shipped provision script and its role in the tooling README. --- .vortex/tooling/README.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.vortex/tooling/README.md b/.vortex/tooling/README.md index 213feebb2..a0b33dd51 100644 --- a/.vortex/tooling/README.md +++ b/.vortex/tooling/README.md @@ -59,7 +59,8 @@ your-project/ ├── scripts/ │ ├── provision-00-enable-demo-modules.sh # shipped - demo site modules │ ├── provision-10-enable-dev-modules.sh # shipped - development modules -│ ├── provision-20-migration.sh # shipped example - copy or remove +│ ├── provision-20-migration.sh # shipped - migration, if enabled +│ ├── provision-30-search-index.sh # shipped - indexing, if Solr used │ ├── provision-40-example.sh # shipped example - copy or remove │ └── provision-50-custom.sh # your own hook script ├── vendor/ @@ -69,18 +70,20 @@ your-project/ └── ... ``` -The template ships runnable examples you can copy or remove - [`scripts/provision-40-example.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-40-example.sh) -and -[`scripts/provision-20-migration.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-20-migration.sh). +is a runnable example that performs no operations - copy it as a starting point +for your own scripts, or remove it. -It also ships two scripts that are not examples and that do real work in -non-production environments: +The remaining shipped scripts do real work and are not examples: [`scripts/provision-00-enable-demo-modules.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-00-enable-demo-modules.sh) -enables the modules and the content model the demo site is built from, and +enables the modules and the content model the demo site is built from, [`scripts/provision-10-enable-dev-modules.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-10-enable-dev-modules.sh) -enables the development modules. Keep them until you manage those modules -yourself. +enables the development modules, +[`scripts/provision-20-migration.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-20-migration.sh) +runs the content migration, and +[`scripts/provision-30-search-index.sh`](https://github.com/drevops/vortex/blob/main/scripts/provision-30-search-index.sh) +rebuilds the search index. The last two ship only when migration and the Solr +service are selected. See the [provisioning documentation](https://www.vortextemplate.com/docs/drupal/provision#running-custom-scripts) From 66201e27620365a02abc031a1e2616811db54312 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 29 Jul 2026 13:06:05 +1000 Subject: [PATCH 6/7] [#2848] Removed the placeholder custom script from the tooling README layout. --- .vortex/tooling/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.vortex/tooling/README.md b/.vortex/tooling/README.md index a0b33dd51..6f82cfe5f 100644 --- a/.vortex/tooling/README.md +++ b/.vortex/tooling/README.md @@ -61,8 +61,7 @@ your-project/ │ ├── provision-10-enable-dev-modules.sh # shipped - development modules │ ├── provision-20-migration.sh # shipped - migration, if enabled │ ├── provision-30-search-index.sh # shipped - indexing, if Solr used -│ ├── provision-40-example.sh # shipped example - copy or remove -│ └── provision-50-custom.sh # your own hook script +│ └── provision-40-example.sh # shipped example - copy or remove ├── vendor/ │ └── bin/vortex-provision # runs each provision-*.sh in order ├── web/ # Drupal web root From 5cbec608c00b6149afe35f7d6cc4558af3c7a6d6 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 29 Jul 2026 13:27:36 +1000 Subject: [PATCH 7/7] Re-triggered CI to clear a flaky check.