Skip to content

Commit

Permalink
Do not include local.setting.php in CI envs.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Mar 5, 2018
1 parent 69a360f commit 6eb49d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions settings/blt.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
/**
* Local envs.
*/
$is_local_env = !$is_ah_env && !$is_pantheon_env;
$is_local_env = !$is_ah_env && !$is_pantheon_env && !$is_ci_env;

/**
* Common variables.
Expand Down Expand Up @@ -314,7 +314,7 @@
*
* Keep this code block at the end of this file to take full effect.
*/
if ($is_local_env) {
if ($is_local_env || getenv('BLT_ENV') == 'LOCAL') {
// Load local settings for all sites.
if (file_exists(DRUPAL_ROOT . "/sites/settings/local.settings.php")) {
require DRUPAL_ROOT . "/sites/settings/local.settings.php";
Expand Down
1 change: 1 addition & 0 deletions tests/phpunit/BltProject/MultiSiteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class MultiSiteTest extends BltProjectTestBase {
* Tests multisite.
*/
public function testMultisiteGenerate() {
putenv("BLT_ENV=LOCAL");
$this->prepareMultisites($this->site1Dir, $this->site2Dir, $this->sandboxInstance, $this->sandboxInstanceClone);

// Make sure we prepared thing correctly.
Expand Down

0 comments on commit 6eb49d2

Please sign in to comment.