mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
dfeb6c1878
Differential Revision: https://phabricator.services.mozilla.com/D190924
164 lines
4.4 KiB
JSON
164 lines
4.4 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"type": "shell",
|
|
"command": "${workspaceFolder}/mach",
|
|
"args": ["--log-no-times"],
|
|
"windows": {
|
|
// Not using ${workspaceFolder} because doing so somehow runs
|
|
// the command on a new window instead of within the vscode terminal
|
|
"command": "./mach"
|
|
},
|
|
"tasks": [
|
|
{
|
|
"label": "clobber",
|
|
"args": ["clobber"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "clobber-python",
|
|
"args": ["clobber", "python"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "configure",
|
|
"args": ["configure"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "build",
|
|
"args": ["build"],
|
|
"problemMatcher": {
|
|
"owner": "cpp",
|
|
"fileLocation": "absolute",
|
|
"pattern": {
|
|
"regexp": "^.*?([^\\s]*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"label": "build-binaries",
|
|
"args": ["build", "binaries"],
|
|
"problemMatcher": {
|
|
"owner": "cpp",
|
|
"fileLocation": "absolute",
|
|
"pattern": {
|
|
"regexp": "^(.*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
}
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
{
|
|
"label": "build-faster",
|
|
"args": ["build", "faster"],
|
|
"problemMatcher": {
|
|
"owner": "cpp",
|
|
"fileLocation": "absolute",
|
|
"pattern": {
|
|
"regexp": "^(.*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"label": "run",
|
|
"args": ["run", "-purgecaches"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "lint-wo",
|
|
"args": ["lint", "-wo"],
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
},
|
|
{
|
|
"label": "eslint",
|
|
"args": ["eslint", "${file}"],
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
},
|
|
{
|
|
"label": "eslint-fix",
|
|
"args": ["eslint", "--fix", "${file}"],
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
},
|
|
{
|
|
"label": "test",
|
|
"args": ["test", "${relativeFile}"],
|
|
"group":"test",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
},
|
|
{
|
|
"label": "mochitest",
|
|
"args": ["mochitest", "${relativeFile}"],
|
|
"problemMatcher": {
|
|
"fileLocation": ["relative", "${workspaceFolder}"],
|
|
"pattern": {
|
|
"regexp": "^.*\\s+(TEST-UNEXPECTED-FAIL|TEST-UNEXPECTED-PASS)\\s+\\|\\s+([^\\s]*)\\s+\\|\\s+(.*)$",
|
|
"severity": 1,
|
|
"file": 2,
|
|
"message": 3
|
|
}
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
},
|
|
{
|
|
"label": "reftest",
|
|
"args": ["reftest", "${relativeFile}"],
|
|
"problemMatcher": {
|
|
"fileLocation": ["absolute"],
|
|
"pattern": {
|
|
"regexp": "^.*\\s+(TEST-UNEXPECTED-FAIL|TEST-UNEXPECTED-PASS)\\s+\\|\\s+file:\/\/([^\\s]*)\\s+==\\s+[^\\s]*\\s+\\|\\s+(.*)$",
|
|
"severity": 1,
|
|
"file": 2,
|
|
"message": 3
|
|
}
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
},
|
|
{
|
|
"label": "xpcshell-test",
|
|
"args": ["xpcshell-test", "${relativeFile}", "--sequential"],
|
|
"problemMatcher": {
|
|
"fileLocation": ["relative", "${workspaceFolder}"],
|
|
"pattern": {
|
|
"regexp": "^.*\\s+(FAIL|ERROR)\\s+\\[([^\\s]*)\\s+:\\s+(\\d+)\\]\\s+(.*)$",
|
|
"severity": 1,
|
|
"file": 2,
|
|
"location": 3,
|
|
"message": 4
|
|
}
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
}
|
|
]
|
|
}
|