Bug 1562686 - revert remaining unnecessary bit of bug 1187245; r=glandium
[gecko.git] / .vscode / tasks.json
blob2cc689541010d89b823aede8111c6ab7e989265e
2     // See https://go.microsoft.com/fwlink/?LinkId=733558
3     // for the documentation about the tasks.json format
4     "version": "2.0.0",
5     "command": "${workspaceRoot}/mach",
6     "windows": {
7       "command": "\"\\mozilla-build\\start-shell.bat mach\""
8     },
9     "args": ["--log-no-times"],
10     "echoCommand": true,
11     "tasks": [
12       {
13         "label": "clobber-python",
14         "type":"shell",
15         "command": "${workspaceRoot}/mach",
16         "windows": {
17           "command": "\"\\mozilla-build\\start-shell.bat mach\""
18         },
19         "args": ["clobber", "python"],
20         "problemMatcher": []
21       },
22       {
23         "label": "configure",
24         "type":"shell",
25         "problemMatcher": []
26       },
27       {
28         "label": "build",
29         "type":"shell",
30         "problemMatcher": {
31           "owner": "cpp",
32           "fileLocation": "absolute",
33           "pattern": {
34             "regexp": "^.*?([^\\s]*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
35             "file": 1,
36             "line": 2,
37             "column": 3,
38             "severity": 4,
39             "message": 5
40           }
41         }
42       },
43       {
44         "label": "build-binaries",
45         "type":"shell",
46         "command": "${workspaceRoot}/mach",
47         "windows": {
48           "command": "\"\\mozilla-build\\start-shell.bat mach\""
49         },
50         "args": ["--log-no-times", "build", "binaries"],
51         "problemMatcher": {
52           "owner": "cpp",
53           "fileLocation": "absolute",
54           "pattern": {
55             "regexp": "^(.*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
56             "file": 1,
57             "line": 2,
58             "column": 3,
59             "severity": 4,
60             "message": 5
61           }
62         },
63         "group": {
64             "kind": "build",
65             "isDefault": true
66         }
67       },
68       {
69         "label": "build-faster",
70         "type":"shell",
71         "command": "${workspaceRoot}/mach",
72         "windows": {
73           "command": "\"\\mozilla-build\\start-shell.bat mach\""
74         },
75         "args": ["--log-no-times", "build", "faster"],
76         "problemMatcher": {
77           "owner": "cpp",
78           "fileLocation": "absolute",
79           "pattern": {
80             "regexp": "^(.*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
81             "file": 1,
82             "line": 2,
83             "column": 3,
84             "severity": 4,
85             "message": 5
86           }
87         }
88       },
89       {
90         "label": "run",
91         "type":"shell",
92         "args": ["-purgecaches"],
93         "problemMatcher": []
94       },
95       {
96         "label": "lint-wo",
97         "type":"shell",
98         "command": "${workspaceRoot}/mach",
99         "windows": {
100           "command": "\"\\mozilla-build\\start-shell.bat mach\""
101         },
102         "args": ["lint", "-wo"],
103         "problemMatcher": ["$eslint-stylish"]
104       },
105       {
106         "label": "eslint",
107         "type": "shell",
108         "problemMatcher": ["$eslint-stylish"]
109       },
110       {
111         "label": "eslint-fix",
112         "type":"shell",
113         "command": "${workspaceRoot}/mach",
114         "windows": {
115           "command": "\"\\mozilla-build\\start-shell.bat mach\""
116         },
117         "args": ["eslint", "--fix", "${file}"],
118         "problemMatcher": ["$eslint-stylish"]
119       },
120       {
121         "label": "test",
122         "type":"shell",
123         "args": ["${relativeFile}"],
124         "group":"test",
125         "presentation": {
126             "reveal": "always",
127             "panel": "new"
128         }
129       },
130       {
131         "label": "mochitest",
132         "type":"shell",
133         "args": ["${relativeFile}"],
134         "problemMatcher": {
135           "fileLocation": ["relative", "${workspaceRoot}"],
136           "pattern": {
137               "regexp": "^.*\\s+(TEST-UNEXPECTED-FAIL|TEST-UNEXPECTED-PASS)\\s+\\|\\s+([^\\s]*)\\s+\\|\\s+(.*)$",
138               "severity": 1,
139               "file": 2,
140               "message": 3
141           }
142         },
143         "presentation": {
144             "reveal": "always",
145             "panel": "new"
146         }
147       },
148       {
149         "label": "reftest",
150         "type":"shell",
151         "args": ["${relativeFile}"],
152         "problemMatcher": {
153           "fileLocation": ["absolute"],
154           "pattern": {
155               "regexp": "^.*\\s+(TEST-UNEXPECTED-FAIL|TEST-UNEXPECTED-PASS)\\s+\\|\\s+file:\/\/([^\\s]*)\\s+==\\s+[^\\s]*\\s+\\|\\s+(.*)$",
156               "severity": 1,
157               "file": 2,
158               "message": 3
159           }
160         },
161         "presentation": {
162             "reveal": "always",
163             "panel": "new"
164         }
165       },
166       {
167         "label": "xpcshell-test",
168         "type":"shell",
169         "args": ["${relativeFile}", "--sequential"],
170         "problemMatcher": {
171           "fileLocation": ["relative", "${workspaceRoot}"],
172           "pattern": {
173               "regexp": "^.*\\s+(FAIL|ERROR)\\s+\\[([^\\s]*)\\s+:\\s+(\\d+)\\]\\s+(.*)$",
174               "severity": 1,
175               "file": 2,
176               "location": 3,
177               "message": 4
178           }
179         },
180         "presentation": {
181               "reveal": "always",
182               "panel": "new"
183         }
184       }
185     ]