Skip to content
Snippets Groups Projects

Issue #3239466: Refactor build tests to use core-supported project templates

Compare and
7 files
+ 184
161
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -70,6 +70,11 @@ class ExcludedPathsSubscriber implements EventSubscriberInterface {
@@ -70,6 +70,11 @@ class ExcludedPathsSubscriber implements EventSubscriberInterface {
// Don't copy anything from the staging area's sites/default.
// Don't copy anything from the staging area's sites/default.
// @todo Make this a lot smarter in https://www.drupal.org/i/3228955.
// @todo Make this a lot smarter in https://www.drupal.org/i/3228955.
$event->excludePath('sites/default');
$event->excludePath('sites/default');
 
 
// If the core-vendor-hardening plugin (used in the legacy-project template)
 
// is present, it may have written a web.config file into the vendor
 
// directory. We don't want to copy that.
 
$event->excludePath('web.config');
}
}
/**
/**
@@ -82,6 +87,12 @@ class ExcludedPathsSubscriber implements EventSubscriberInterface {
@@ -82,6 +87,12 @@ class ExcludedPathsSubscriber implements EventSubscriberInterface {
// Automated test site directories should never be staged.
// Automated test site directories should never be staged.
$event->excludePath('sites/simpletest');
$event->excludePath('sites/simpletest');
 
// Windows server configuration files, like web.config, should never be
 
// staged either. (These can be written in the vendor directory by the
 
// core-vendor-hardening plugin, which is used in the drupal/legacy-project
 
// template.)
 
$event->excludePath('web.config');
 
if ($public = $this->getFilesPath('public')) {
if ($public = $this->getFilesPath('public')) {
$event->excludePath($public);
$event->excludePath($public);
}
}
Loading