2017-05-04 18:03:54 +03:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// for the documentation about the tasks.json format
|
|
|
|
"version": "2.0.0",
|
2017-12-06 16:59:35 +03:00
|
|
|
"command": "${workspaceRoot}/mach",
|
2017-07-03 21:55:07 +03:00
|
|
|
"windows": {
|
|
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
|
|
},
|
2017-05-04 18:03:54 +03:00
|
|
|
"args": ["--log-no-times"],
|
|
|
|
"echoCommand": true,
|
|
|
|
"tasks": [
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "clobber-python",
|
|
|
|
"type":"shell",
|
|
|
|
"command": "${workspaceRoot}/mach",
|
|
|
|
"windows": {
|
|
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
|
|
},
|
|
|
|
"args": ["clobber", "python"],
|
|
|
|
"problemMatcher": []
|
2017-05-04 18:03:54 +03:00
|
|
|
},
|
2017-07-03 21:55:07 +03:00
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "configure",
|
|
|
|
"type":"shell",
|
|
|
|
"problemMatcher": []
|
2017-07-03 21:55:07 +03:00
|
|
|
},
|
2017-05-04 18:03:54 +03:00
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "build",
|
|
|
|
"type":"shell",
|
2017-05-04 18:03:54 +03:00
|
|
|
"problemMatcher": {
|
|
|
|
"owner": "cpp",
|
|
|
|
"fileLocation": "absolute",
|
|
|
|
"pattern": {
|
2017-12-06 16:59:35 +03:00
|
|
|
"regexp": "^.*?([^\\s]*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
2017-05-04 18:03:54 +03:00
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"severity": 4,
|
|
|
|
"message": 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "build-binaries",
|
|
|
|
"type":"shell",
|
|
|
|
"command": "${workspaceRoot}/mach",
|
|
|
|
"windows": {
|
|
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
|
|
},
|
|
|
|
"args": ["--log-no-times", "build", "binaries"],
|
2017-05-04 18:03:54 +03:00
|
|
|
"problemMatcher": {
|
|
|
|
"owner": "cpp",
|
|
|
|
"fileLocation": "absolute",
|
|
|
|
"pattern": {
|
|
|
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"severity": 4,
|
|
|
|
"message": 5
|
|
|
|
}
|
2017-12-06 16:59:35 +03:00
|
|
|
},
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
2017-05-04 18:03:54 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "build-faster",
|
|
|
|
"type":"shell",
|
|
|
|
"command": "${workspaceRoot}/mach",
|
|
|
|
"windows": {
|
|
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
|
|
},
|
|
|
|
"args": ["--log-no-times", "build", "faster"],
|
2017-05-04 18:03:54 +03:00
|
|
|
"problemMatcher": {
|
|
|
|
"owner": "cpp",
|
|
|
|
"fileLocation": "absolute",
|
|
|
|
"pattern": {
|
|
|
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"severity": 4,
|
|
|
|
"message": 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "run",
|
|
|
|
"type":"shell",
|
2017-05-04 18:03:54 +03:00
|
|
|
"args": ["-purgecaches"],
|
2017-12-06 16:59:35 +03:00
|
|
|
"problemMatcher": []
|
2017-05-04 18:03:54 +03:00
|
|
|
},
|
2017-07-03 21:55:07 +03:00
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "lint-wo",
|
|
|
|
"type":"shell",
|
|
|
|
"command": "${workspaceRoot}/mach",
|
|
|
|
"windows": {
|
|
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
|
|
},
|
2017-07-03 21:55:07 +03:00
|
|
|
"args": ["lint", "-wo"],
|
|
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
|
|
},
|
2017-05-04 18:03:54 +03:00
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "eslint",
|
|
|
|
"type": "shell",
|
2017-05-04 18:03:54 +03:00
|
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
|
|
},
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "eslint-fix",
|
|
|
|
"type":"shell",
|
|
|
|
"command": "${workspaceRoot}/mach",
|
|
|
|
"windows": {
|
|
|
|
"command": "\"\\mozilla-build\\start-shell.bat mach\""
|
|
|
|
},
|
2017-05-04 18:03:54 +03:00
|
|
|
"args": ["eslint", "--fix", "${file}"],
|
|
|
|
"problemMatcher": ["$eslint-stylish"]
|
|
|
|
},
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "test",
|
|
|
|
"type":"shell",
|
2017-05-04 18:03:54 +03:00
|
|
|
"args": ["${relativeFile}"],
|
2017-12-06 16:59:35 +03:00
|
|
|
"group":"test",
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
}
|
2017-05-04 18:03:54 +03:00
|
|
|
},
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "mochitest",
|
|
|
|
"type":"shell",
|
2017-05-04 18:03:54 +03:00
|
|
|
"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
|
|
|
|
}
|
2017-12-06 16:59:35 +03:00
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
2017-05-04 18:03:54 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "reftest",
|
|
|
|
"type":"shell",
|
2017-05-04 18:03:54 +03:00
|
|
|
"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
|
|
|
|
}
|
2017-12-06 16:59:35 +03:00
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
2017-05-04 18:03:54 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2017-12-06 16:59:35 +03:00
|
|
|
"label": "xpcshell-test",
|
|
|
|
"type":"shell",
|
2017-05-04 18:03:54 +03:00
|
|
|
"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
|
|
|
|
}
|
2017-12-06 16:59:35 +03:00
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
2017-05-04 18:03:54 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|