-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.json
More file actions
90 lines (89 loc) · 2.58 KB
/
tasks.json
File metadata and controls
90 lines (89 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build pgcov",
"type": "shell",
"command": "go",
"args": [
"build",
"./cmd/pgcov"
],
"options": {
"env": {
"CGO_ENABLED": "1"
}
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": ["$go"]
},
{
"label": "Unit Test",
"type": "shell",
"command": "go test -failfast -p 1 -timeout=300s -parallel=1 .${pathSeparator}${relativeFileDirname}${pathSeparator}... -coverprofile='coverage.out' -json | tparse -all -progress",
"problemMatcher": [
"$go"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"echo": true,
"focus": true
}
},
{
"label": "Coverage Report",
"type": "shell",
"command": "go tool cover -html='coverage.out'",
"problemMatcher": [
"$go"
],
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Lint",
"type": "shell",
"command": "golangci-lint run",
"problemMatcher": [
"$go"
],
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Clean Build Cache",
"type": "shell",
"command": "go",
"args": [
"clean",
"-cache",
"-testcache"
],
"group": "none",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
}
]
}