-
Notifications
You must be signed in to change notification settings - Fork 10
/
Taskfile.yml
56 lines (45 loc) · 905 Bytes
/
Taskfile.yml
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
# github.com/go-task/task
version: '2'
tasks:
default:
deps:
- task: build
build:
desc: build main.go
cmds:
- go build -i -v main.go
silent: true
run:
desc: run main.go
cmds:
- go run main.go
dep_ensure:
desc: get and update dependencies
cmds:
- dep ensure
dep_add:
desc: add dependencies usage> task dep_add repo=path/to/repo
cmds:
- dep ensure -add {{.repo}}
vars:
repo:
test:
desc: run go test usage> task test PACKAGE=path/to/package
cmds:
- go test {{.PACKAGE}}
vars:
PACKAGE:
test_all:
desc: run all test
cmds:
- go test ./...
format:
desc: format go sources in current project
cmds:
- go fmt -x ./...
silent: true
lint:
desc: source code lint check
cmds:
- gometalinter ./... --config=lint_config.json
silent: true