refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s

This commit is contained in:
Kroonk
2026-05-22 16:19:55 +02:00
parent 38cc4c09ca
commit a213a1dba0
2215 changed files with 242567 additions and 6015 deletions

View File

@@ -0,0 +1,36 @@
<?php
/**
* Copy of server.php with Code Coverage capture.
*/
/** Coverage files destination. */
const STORAGE = '/results/cov';
$root = realpath(__DIR__.'/../../');
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists($root.'/public'.$uri)) {
return false;
}
/**
* Set CodeCoverage via LiveCodeCoverage.
*/
require $root.'/vendor/autoload.php';
$shutDownCodeCoverage = \LiveCodeCoverage\LiveCodeCoverage::bootstrap(
true,
$root.STORAGE,
$root.'/phpunit.xml'
);
require_once $root.'/public/index.php';
$shutDownCodeCoverage();