enable phpstan task to run in background
This commit is contained in:
parent
ff7e99b986
commit
ff18453205
|
@ -3,7 +3,8 @@
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"label": "phpstan-8.1",
|
"label": "phpstan-8.1 (background)",
|
||||||
|
"isBackground": true,
|
||||||
"problemMatcher": {
|
"problemMatcher": {
|
||||||
"fileLocation": ["relative", "${workspaceRoot}"],
|
"fileLocation": ["relative", "${workspaceRoot}"],
|
||||||
"owner": "phpstan-8.1",
|
"owner": "phpstan-8.1",
|
||||||
|
@ -12,13 +13,19 @@
|
||||||
"file": 1,
|
"file": 1,
|
||||||
"line": 2,
|
"line": 2,
|
||||||
"message": 3
|
"message": 3
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "Using configuration file",
|
||||||
|
"endsPattern": "All done"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"command": "docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan --workdir /app php:8.1-cli php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw || true",
|
"command": "while true; do docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan --workdir /app php:8.1-cli php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw || true; echo 'All done'; sleep 30; done",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"label": "phpstan-8.0",
|
"label": "phpstan-8.0 (run once)",
|
||||||
"problemMatcher": {
|
"problemMatcher": {
|
||||||
"fileLocation": ["relative", "${workspaceRoot}"],
|
"fileLocation": ["relative", "${workspaceRoot}"],
|
||||||
"owner": "phpstan-8.0",
|
"owner": "phpstan-8.0",
|
||||||
|
|
Loading…
Reference in New Issue