GitRepositoryManager/Taskfile.yml

27 lines
408 B
YAML
Raw Normal View History

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