mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
00597541ad
Most of the keywords used were deprecated and following versioning 0.1.0 even though it was marked as version 2.0.0. This also defines build-binaries as the default task, so that Command-Shift-B doesn't need any confirmation. MozReview-Commit-ID: UGDxqJYaFs --HG-- extra : rebase_source : aafcc4839ec39d2d5998b2663fc0d24f10ec288e
187 lines
5.0 KiB
JSON
187 lines
5.0 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"command": "${workspaceRoot}/mach",
|
|
"windows": {
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
},
|
|
"args": ["--log-no-times"],
|
|
"echoCommand": true,
|
|
"tasks": [
|
|
{
|
|
"label": "clobber-python",
|
|
"type":"shell",
|
|
"command": "${workspaceRoot}/mach",
|
|
"windows": {
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
},
|
|
"args": ["clobber", "python"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "configure",
|
|
"type":"shell",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "build",
|
|
"type":"shell",
|
|
"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",
|
|
"type":"shell",
|
|
"command": "${workspaceRoot}/mach",
|
|
"windows": {
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
},
|
|
"args": ["--log-no-times", "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",
|
|
"type":"shell",
|
|
"command": "${workspaceRoot}/mach",
|
|
"windows": {
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
},
|
|
"args": ["--log-no-times", "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",
|
|
"type":"shell",
|
|
"args": ["-purgecaches"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "lint-wo",
|
|
"type":"shell",
|
|
"command": "${workspaceRoot}/mach",
|
|
"windows": {
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
},
|
|
"args": ["lint", "-wo"],
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
},
|
|
{
|
|
"label": "eslint",
|
|
"type": "shell",
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
},
|
|
{
|
|
"label": "eslint-fix",
|
|
"type":"shell",
|
|
"command": "${workspaceRoot}/mach",
|
|
"windows": {
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
},
|
|
"args": ["eslint", "--fix", "${file}"],
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
},
|
|
{
|
|
"label": "test",
|
|
"type":"shell",
|
|
"args": ["${relativeFile}"],
|
|
"group":"test",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
},
|
|
{
|
|
"label": "mochitest",
|
|
"type":"shell",
|
|
"args": ["${relativeFile}"],
|
|
"problemMatcher": {
|
|
"fileLocation": ["relative", "${workspaceRoot}"],
|
|
"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",
|
|
"type":"shell",
|
|
"args": ["${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",
|
|
"type":"shell",
|
|
"args": ["${relativeFile}", "--sequential"],
|
|
"problemMatcher": {
|
|
"fileLocation": ["relative", "${workspaceRoot}"],
|
|
"pattern": {
|
|
"regexp": "^.*\\s+(FAIL|ERROR)\\s+\\[([^\\s]*)\\s+:\\s+(\\d+)\\]\\s+(.*)$",
|
|
"severity": 1,
|
|
"file": 2,
|
|
"location": 3,
|
|
"message": 4
|
|
}
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
}
|
|
]
|
|
}
|