-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
45 lines (38 loc) · 925 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
version: "3"
vars:
version: "0.3.2"
license: "MIT"
libname: "retrygo"
coverfile: "coverage.out"
tasks:
install-dev:
desc: "Install development tools"
cmds:
- go install github.com/princjef/gomarkdoc/cmd/gomarkdoc@latest
test:
desc: "Run tests"
vars:
timeout: "5m"
cmds:
- go test -v -timeout {{.timeout}} -coverprofile={{.coverfile}} -covermode=atomic .
bench:
desc: "Run benchmarks only"
vars:
timeout: "5m"
cmds:
- go test -v -timeout {{.timeout}} -bench=. -run=^$$ -benchmem .
show-cover:
desc: "Show coverage"
cmds:
- go tool cover -html={{.coverfile}}
doc:
desc: "Generate documentation"
vars:
outputdir: "docs"
cmds:
- gomarkdoc -v -o '{{.outputdir}}/README.md' .
release:
desc: "Release a new version"
cmds:
- git tag v{{.version}}
- git push origin v{{.version}}