From c6f0c9860ecc85f17cfcc994e3e279eb382ec705 Mon Sep 17 00:00:00 2001 From: Bec White Date: Fri, 3 Sep 2021 18:28:51 -0500 Subject: [PATCH] Don't do settings.php templating in the-build. --- defaults.yml | 4 +- defaults/install/build.xml | 15 --- defaults/install/drupal/services.build.yml | 6 - .../install/drupal/settings.build-acquia.php | 43 ------- .../drupal/settings.build-pantheon.php | 18 --- .../drupal/settings.build-platformsh.php | 21 ---- defaults/install/drupal/settings.build.php | 49 -------- defaults/install/the-build/build.acquia.yml | 10 -- defaults/install/the-build/build.pantheon.yml | 10 -- .../install/the-build/build.platformsh.yml | 10 -- targets/install.xml | 110 ++++++------------ 11 files changed, 38 insertions(+), 258 deletions(-) delete mode 100644 defaults/install/drupal/services.build.yml delete mode 100644 defaults/install/drupal/settings.build-acquia.php delete mode 100644 defaults/install/drupal/settings.build-pantheon.php delete mode 100644 defaults/install/drupal/settings.build-platformsh.php delete mode 100644 defaults/install/drupal/settings.build.php delete mode 100644 defaults/install/the-build/build.acquia.yml delete mode 100644 defaults/install/the-build/build.pantheon.yml delete mode 100644 defaults/install/the-build/build.platformsh.yml diff --git a/defaults.yml b/defaults.yml index e0779d39..6419ae62 100644 --- a/defaults.yml +++ b/defaults.yml @@ -14,7 +14,7 @@ build: # The destination host, either 'acquia', 'pantheon', 'platformsh', or 'other'. This is # currently only used when setting up the settings.php file for a Drupal site. - host: other + host: acquia # Drupal configuration used by targets/drupal.xml drupal: @@ -240,7 +240,7 @@ phpcs: # use the extensions option (below). This option should not be used with Coder >= 8.3.7, which only # checks php, inc, css, and js by default. ignore: "*.md" - + # Comma-separated list of extensions to check in the PHP_CodeSniffer review. extensions: "php,module,inc,install,test,profile,theme,css,info,txt,yml,js" diff --git a/defaults/install/build.xml b/defaults/install/build.xml index 0bf4ce68..d3314fe1 100644 --- a/defaults/install/build.xml +++ b/defaults/install/build.xml @@ -43,21 +43,6 @@ - - - - - - - - - - - - - - - diff --git a/defaults/install/drupal/services.build.yml b/defaults/install/drupal/services.build.yml deleted file mode 100644 index d5954144..00000000 --- a/defaults/install/drupal/services.build.yml +++ /dev/null @@ -1,6 +0,0 @@ -# See sites/default/default.services.yml for details. -parameters: - twig.config: - debug: ${drupal.twig.debug} - auto_reload: null - cache: true diff --git a/defaults/install/drupal/settings.build-acquia.php b/defaults/install/drupal/settings.build-acquia.php deleted file mode 100644 index 311b60a1..00000000 --- a/defaults/install/drupal/settings.build-acquia.php +++ /dev/null @@ -1,43 +0,0 @@ - 'mysql', - 'database' => '${drupal.site.database.database}', - 'username' => '${drupal.site.database.username}', - 'password' => '${drupal.site.database.password}', - 'host' => '${drupal.site.database.host}', - 'prefix' => '', - 'collation' => 'utf8mb4_general_ci', -); - -$settings['config_sync_directory'] = '${drupal.site.config_sync_directory}'; - -$settings['hash_salt'] = '${drupal.site.hash_salt}'; -$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml'; -$settings['container_yamls'][] = __DIR__ . '/services.build.yml'; - -$settings['file_public_path'] = '${drupal.site.settings.file_public_path}'; -$settings['file_private_path'] = '${drupal.site.settings.file_private_path}'; - -// Use the standard temporary directory on the development environment (update if the -// project's development environment is configured differently). -$settings['file_temp_path'] = '/tmp'; - -// Enable/disable config_split configurations. To simulate other config split -// environments, change "development" to either "staging" or "production", then run: -// drush cr && drush cim -y -$config['config_split.config_split.development']['status'] = TRUE; - -// Disable the render cache. -$settings['cache']['bins']['render'] = 'cache.backend.null'; - -// Disable the dynamic page cache. -$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null'; - -// Disable CSS and JS aggregation. -$config['system.performance']['css']['preprocess'] = FALSE; -$config['system.performance']['js']['preprocess'] = FALSE; - -// Don't chmod the sites subdirectory. -$settings['skip_permissions_hardening'] = TRUE; - -// Turn errors up. -$config['system.logging']['error_level'] = 'verbose'; diff --git a/defaults/install/the-build/build.acquia.yml b/defaults/install/the-build/build.acquia.yml deleted file mode 100644 index 4fcfa84d..00000000 --- a/defaults/install/the-build/build.acquia.yml +++ /dev/null @@ -1,10 +0,0 @@ -# @file -# Configuration properties specific to the Acquia deployment. -drupal: - twig: - debug: false - sites: - default: - build: - settings_template: .the-build/drupal/settings.build-acquia.php - services_dest: artifacts/dev/null diff --git a/defaults/install/the-build/build.pantheon.yml b/defaults/install/the-build/build.pantheon.yml deleted file mode 100644 index 1729d3f6..00000000 --- a/defaults/install/the-build/build.pantheon.yml +++ /dev/null @@ -1,10 +0,0 @@ -# @file -# Configuration properties specific to the Pantheon deployment. -drupal: - twig: - debug: false - sites: - default: - build: - settings_template: .the-build/drupal/settings.build-pantheon.php - services_dest: artifacts/dev/null diff --git a/defaults/install/the-build/build.platformsh.yml b/defaults/install/the-build/build.platformsh.yml deleted file mode 100644 index b7f10aef..00000000 --- a/defaults/install/the-build/build.platformsh.yml +++ /dev/null @@ -1,10 +0,0 @@ -# @file -# Configuration properties specific to the Platform.sh deployment. -drupal: - twig: - debug: false - sites: - default: - build: - settings_template: .the-build/drupal/settings.build-platformsh.php - services_dest: artifacts/dev/null diff --git a/targets/install.xml b/targets/install.xml index ab2a67ea..39e909c1 100644 --- a/targets/install.xml +++ b/targets/install.xml @@ -48,6 +48,12 @@ + + + + + + @@ -137,34 +143,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -181,9 +161,9 @@ - - - + + + @@ -224,55 +204,37 @@ $> phing test + + - + + +