mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Add some task definitions to run mach from VSCode (bug 1323308). r=gps
MozReview-Commit-ID: EVFFHmgHRL2 --HG-- extra : rebase_source : 7a05f04dc27fa00fe862278dcbc733aff5418c4e
This commit is contained in:
parent
203bdaed3b
commit
41e347a487
3
.gitignore
vendored
3
.gitignore
vendored
@ -128,5 +128,6 @@ lextab.py
|
||||
/.tup
|
||||
|
||||
# Ignore Visual Studio Code workspace files.
|
||||
.vscode/
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
!.vscode/tasks.json
|
||||
|
@ -141,7 +141,7 @@ GPATH
|
||||
^\.tup
|
||||
|
||||
# Ignore Visual Studio Code workspace files.
|
||||
\.vscode/(?!extensions.json$)
|
||||
\.vscode/(?!extensions\.json|tasks\.json)
|
||||
|
||||
subinclude:servo/.hgignore
|
||||
|
||||
|
129
.vscode/tasks.json
vendored
Normal file
129
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,129 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"command": "${workspaceRoot}/mach",
|
||||
"isShellCommand": true,
|
||||
"args": ["--log-no-times"],
|
||||
"showOutput": "silent",
|
||||
"echoCommand": true,
|
||||
"suppressTaskName": false,
|
||||
"tasks": [
|
||||
{
|
||||
"taskName": "clobber"
|
||||
},
|
||||
{
|
||||
"taskName": "configure"
|
||||
},
|
||||
{
|
||||
"taskName": "build",
|
||||
"isBuildCommand": true,
|
||||
"problemMatcher": {
|
||||
"owner": "cpp",
|
||||
"fileLocation": "absolute",
|
||||
"pattern": {
|
||||
"regexp": "^.*?tools([^\\s]*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"column": 3,
|
||||
"severity": 4,
|
||||
"message": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"taskName": "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
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"taskName": "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
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"taskName": "run",
|
||||
"args": ["-purgecaches"],
|
||||
"showOutput": "always"
|
||||
},
|
||||
{
|
||||
"taskName": "eslint",
|
||||
"problemMatcher": ["$eslint-stylish"]
|
||||
},
|
||||
{
|
||||
"taskName": "eslint fix",
|
||||
"suppressTaskName": true,
|
||||
"args": ["eslint", "--fix", "${file}"],
|
||||
"problemMatcher": ["$eslint-stylish"]
|
||||
},
|
||||
{
|
||||
"taskName": "test",
|
||||
"args": ["${relativeFile}"],
|
||||
"isTestCommand": true,
|
||||
"showOutput": "always"
|
||||
},
|
||||
{
|
||||
"taskName": "mochitest",
|
||||
"args": ["${relativeFile}"],
|
||||
"showOutput": "always",
|
||||
"problemMatcher": {
|
||||
"fileLocation": ["relative", "${workspaceRoot}"],
|
||||
"pattern": {
|
||||
"regexp": "^.*\\s+(TEST-UNEXPECTED-FAIL|TEST-UNEXPECTED-PASS)\\s+\\|\\s+([^\\s]*)\\s+\\|\\s+(.*)$",
|
||||
"severity": 1,
|
||||
"file": 2,
|
||||
"message": 3
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"taskName": "reftest",
|
||||
"args": ["${relativeFile}"],
|
||||
"showOutput": "always",
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"taskName": "xpcshell-test",
|
||||
"args": ["${relativeFile}", "--sequential"],
|
||||
"showOutput": "always",
|
||||
"problemMatcher": {
|
||||
"fileLocation": ["relative", "${workspaceRoot}"],
|
||||
"pattern": {
|
||||
"regexp": "^.*\\s+(FAIL|ERROR)\\s+\\[([^\\s]*)\\s+:\\s+(\\d+)\\]\\s+(.*)$",
|
||||
"severity": 1,
|
||||
"file": 2,
|
||||
"location": 3,
|
||||
"message": 4
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user