.vscode/tasks.json
author Narcis Beleuzu <nbeleuzu@mozilla.com>
Fri, 16 Nov 2018 02:13:57 +0200
changeset 1761662 1abdc7367834b8dfc8e0606bf688f11a901730d3
parent 1704077 e0bbb4ea8ecb8ae59e1641fe2886e2ce81ea7190
child 2008077 20b4bb78e44a2db0de1426804a9458a70e737086
child 2418428 6c40b12194b19e6e839bad1835bdaec20c08bf94
permissions -rw-r--r--
Backed out 6 changesets (bug 1502457) for build bustages. CLOSED TREE Backed out changeset febdb867785a (bug 1502457) Backed out changeset 7ea52c602445 (bug 1502457) Backed out changeset 73bb6a74cad0 (bug 1502457) Backed out changeset b172bda6e983 (bug 1502457) Backed out changeset 0e283ddc6c3b (bug 1502457) Backed out changeset 638fa0251123 (bug 1502457)

{
    // 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"
        }
      }
    ]
}