-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
55 lines (45 loc) · 1.02 KB
/
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
version: "3"
dotenv: ['.env', '{{.ENV}}/.env.', '{{.HOME}}/.env']
tasks:
default:
cmds:
- task --list-all
go:test:
cmds:
- go test github.com/ecshreve/slomad/...
go:test:verbose:
cmds:
- go test -v github.com/ecshreve/slomad/...
go:test:cover:
cmds:
- go test -race -coverprofile=reports/cover.out -covermode=atomic github.com/ecshreve/slomad/...
go:test:cover:serve:
deps:
- go:test:cover
cmds:
- go tool cover -html reports/cover.out -o reports/cover.html
- cd reports && python3 -m http.server 8008
go:build:
generates:
- bin/slomad
sources:
- ./**/*.go
- ./**/config/*.yml
cmds:
- go build -o bin/slomad github.com/ecshreve/slomad/cmd/slomad
go:doc:serve:
cmds:
- godoc -http=:6060
go:doc:gen:
cmds:
- gomarkdoc -u ./...
sources:
- ./**/*.go
- ./**/config/*.yml
generates:
- ./**/*.md
go:run:
deps:
- go:build
cmds:
- bin/slomad {{.CLI_ARGS}}