From 3edc5553c6e39b8258e522699defe90c4d213ca5 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 12 Feb 2023 14:38:43 +0100 Subject: [PATCH] use own local.config.php for CI --- mods/local.config.ci.php | 47 ++++++++++++++++++++++++++++++++++++++++ tests/Util/VFSTrait.php | 2 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 mods/local.config.ci.php diff --git a/mods/local.config.ci.php b/mods/local.config.ci.php new file mode 100644 index 0000000000..fac4d80b9f --- /dev/null +++ b/mods/local.config.ci.php @@ -0,0 +1,47 @@ + [ + 'hostname' => 'localhost', + 'username' => 'friendica', + 'password' => 'friendica', + 'database' => 'friendica', + 'charset' => 'utf8mb4', + ], + + // **************************************************************** + // The configuration below will be overruled by the admin panel. + // Changes made below will only have an effect if the database does + // not contain any configuration for the friendica system. + // **************************************************************** + + 'config' => [ + 'hostname' => 'friendica.local', + 'admin_email' => 'admin@friendica.local', + 'sitename' => 'Friendica Social Network', + 'register_policy' => \Friendica\Module\Register::OPEN, + 'register_text' => '', + ], + 'system' => [ + 'default_timezone' => 'UTC', + 'language' => 'en', + 'ssl_policy' => \Friendica\App\BaseURL::SSL_POLICY_SELFSIGN, + 'url' => 'https://friendica.local', + 'urlpath' => '', + // don't start unexpected worker.php processes during test! + 'worker_dont_fork' => true, + ], +]; diff --git a/tests/Util/VFSTrait.php b/tests/Util/VFSTrait.php index 3a203588cf..a98b7925de 100644 --- a/tests/Util/VFSTrait.php +++ b/tests/Util/VFSTrait.php @@ -54,7 +54,7 @@ trait VFSTrait $this->setConfigFile('static' . DIRECTORY_SEPARATOR . 'defaults.config.php', true); $this->setConfigFile('static' . DIRECTORY_SEPARATOR . 'settings.config.php', true); $this->setConfigFile( - 'mods' . DIRECTORY_SEPARATOR . 'local.config.vagrant.php', + 'mods' . DIRECTORY_SEPARATOR . 'local.config.ci.php', false, 'local.config.php' ); } -- 2.39.5