mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-13 15:46:53 +03:00
Specify cache locations for build tools
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
.phpunit.result.cache
|
||||
/build/
|
||||
/composer.lock
|
||||
/phpcs.xml
|
||||
|
||||
+4
-4
@@ -71,11 +71,11 @@
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "parallel-lint src tests",
|
||||
"phpcbf": "phpcbf -vpw",
|
||||
"phpcs": "phpcs",
|
||||
"phpcbf": "phpcbf -vpw --cache=build/cache/phpcs.cache",
|
||||
"phpcs": "phpcs --cache=build/cache/phpcs.cache",
|
||||
"phpstan": [
|
||||
"phpstan analyse -c tests/phpstan.neon src --level max --no-progress",
|
||||
"phpstan analyse -c tests/phpstan-tests.neon tests --level max --no-progress"
|
||||
"phpstan analyse -c tests/phpstan.neon --no-progress",
|
||||
"phpstan analyse -c tests/phpstan-tests.neon --no-progress"
|
||||
],
|
||||
"psalm": "psalm --show-info=false --config=tests/psalm.xml",
|
||||
"phpunit": "phpunit --verbose --colors=always",
|
||||
|
||||
+5
-4
@@ -1,9 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
|
||||
bootstrap="./tests/bootstrap.php"
|
||||
colors="true"
|
||||
verbose="true">
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
|
||||
bootstrap="./tests/bootstrap.php"
|
||||
cacheResultFile="./build/cache/phpunit.result.cache"
|
||||
colors="true"
|
||||
verbose="true">
|
||||
<testsuites>
|
||||
<testsuite name="ramsey/uuid test suite">
|
||||
<directory>./tests</directory>
|
||||
|
||||
+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']
|
||||
]);
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
parameters:
|
||||
tmpDir: ../build/cache/phpstan
|
||||
level: max
|
||||
paths:
|
||||
- .
|
||||
autoload_files:
|
||||
- ./phpstan-bootstrap.php
|
||||
checkMissingIterableValueType: false
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
parameters:
|
||||
tmpDir: ../build/cache/phpstan
|
||||
level: max
|
||||
paths:
|
||||
- ../src
|
||||
checkMissingIterableValueType: false
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
autoload_files:
|
||||
|
||||
+11
-7
@@ -1,13 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="vendor/vimeo/psalm/config.xsd"
|
||||
errorBaseline="tests/psalm-baseline.xml"
|
||||
>
|
||||
<psalm xmlns="https://getpsalm.org/schema/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config ../vendor/vimeo/psalm/config.xsd"
|
||||
totallyTyped="true"
|
||||
cacheDirectory="build/cache/psalm"
|
||||
errorBaseline="tests/psalm-baseline.xml">
|
||||
|
||||
<projectFiles>
|
||||
<directory name="src" />
|
||||
<directory name="tests/static-analysis" />
|
||||
</projectFiles>
|
||||
|
||||
<stubs>
|
||||
<file name="tests/phpstan-bootstrap.php"/>
|
||||
</stubs>
|
||||
</psalm>
|
||||
|
||||
Reference in New Issue
Block a user