mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Specify cache locations for build tools
This commit is contained in:
+9
-1
@@ -16,9 +16,17 @@ use AspectMock\Kernel;
|
||||
require_once __DIR__ . '/../vendor/autoload.php'; // composer autoload
|
||||
require_once __DIR__ . '/phpstan-bootstrap.php';
|
||||
|
||||
$cacheDir = __DIR__ . '/../build/cache/goaop';
|
||||
if (!is_dir($cacheDir)) {
|
||||
if (mkdir($cacheDir, 0775, true) === false) {
|
||||
echo "\n[ERROR] Unable to create cache directory at {$cacheDir}\n\n";
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
$kernel = Kernel::getInstance();
|
||||
$kernel->init([
|
||||
'debug' => true,
|
||||
'cacheDir' => sys_get_temp_dir(),
|
||||
'cacheDir' => $cacheDir,
|
||||
'includePaths' => [__DIR__ . '/../src']
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user