2021-11-11 15:17:58 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
pull:
|
|
|
|
cmds:
|
|
|
|
- go mod download
|
|
|
|
silent: true
|
|
|
|
test:
|
|
|
|
cmds:
|
2024-01-13 14:39:40 +00:00
|
|
|
- go test $(find './internal' -name "*.go" -exec dirname {} \; | uniq | grep '/') -cover
|
2021-11-11 15:17:58 +00:00
|
|
|
build:
|
2024-01-13 14:39:40 +00:00
|
|
|
dir: "cmd"
|
2021-11-11 15:17:58 +00:00
|
|
|
cmds:
|
2024-01-13 14:39:40 +00:00
|
|
|
- mkdir -p ../build
|
|
|
|
- go build -o ../build/grm
|
2021-11-11 15:17:58 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
deps:
|
|
|
|
- build
|
|
|
|
cmds:
|
|
|
|
- go install .
|