-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroom.toml
45 lines (38 loc) · 915 Bytes
/
groom.toml
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
name = "gox"
[variables]
main-file = "main.go"
version = '0.0.3'
ldflags = "-X main.VERSION=$version"
[task.build]
description = "Build the project"
environment = ["CGO_ENABLED=0"]
command = 'go build -ldflags "$ldflags" -o $name ${main-file}'
depends = [
"format"
]
[task.format]
description = "Format the project."
command = "go fmt ./..."
[task.release]
description = "Prepare release assets"
commands = [
"mkdir build",
"groom build",
"mv gox build/",
"cp README.md build/",
"cp LICENSE build/",
"tar -czvf $name-$version-amd64.tar.gz build/",
"groom clean"
]
depends = [
"clean"
]
[task.clean]
description = "Clean build artifacts"
command = "rm -rf build"
[task.install]
description = "Install the project"
command = "gox install ."
[task.doc]
description = "Build documentation"
command = "docker run --rm -v ${pwd} :/work --user 1000:1000 pspiagicw/doc-generator"