2020-09-17 10:30:52 +00:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
2022-07-31 06:39:56 +00:00
|
|
|
{
|
|
|
|
"type": "shell",
|
2022-07-31 06:49:09 +00:00
|
|
|
"label": "phpstan-8.1 (background)",
|
|
|
|
"isBackground": true,
|
2022-07-31 06:39:56 +00:00
|
|
|
"problemMatcher": {
|
|
|
|
"fileLocation": ["relative", "${workspaceRoot}"],
|
|
|
|
"owner": "phpstan-8.1",
|
|
|
|
"pattern": {
|
|
|
|
"regexp": "^/app/(.*?):([0-9\\?]*):(.*)$",
|
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"message": 3
|
2022-07-31 06:49:09 +00:00
|
|
|
},
|
|
|
|
"background": {
|
|
|
|
"activeOnStart": true,
|
|
|
|
"beginsPattern": "Using configuration file",
|
|
|
|
"endsPattern": "All done"
|
|
|
|
|
2022-07-31 06:39:56 +00:00
|
|
|
}
|
|
|
|
},
|
2022-07-31 06:49:09 +00:00
|
|
|
"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",
|
2022-07-31 06:39:56 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
2022-07-31 06:49:09 +00:00
|
|
|
"label": "phpstan-8.0 (run once)",
|
2022-07-31 06:39:56 +00:00
|
|
|
"problemMatcher": {
|
|
|
|
"fileLocation": ["relative", "${workspaceRoot}"],
|
|
|
|
"owner": "phpstan-8.0",
|
|
|
|
"pattern": {
|
|
|
|
"regexp": "^/app/(.*?):([0-9\\?]*):(.*)$",
|
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"message": 3
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"command": "docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.0:/tmp/phpstan --workdir /app php:8.0-cli php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw || true",
|
|
|
|
},
|
2020-09-17 10:30:52 +00:00
|
|
|
{
|
|
|
|
"type": "gulp",
|
|
|
|
"task": "default",
|
|
|
|
"problemMatcher": [],
|
2022-06-05 08:23:01 +00:00
|
|
|
"label": "gulp: default",
|
|
|
|
"options": {
|
|
|
|
"env": {
|
|
|
|
"PATH": "${env:PATH}:/usr/lib/sdk/node16/bin/"
|
|
|
|
}
|
|
|
|
}
|
2020-09-17 10:30:52 +00:00
|
|
|
}
|
|
|
|
]
|
2022-06-05 08:23:01 +00:00
|
|
|
}
|