-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
38 lines (37 loc) · 981 Bytes
/
Taskfile.yaml
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
version: "3"
tasks:
test:
cmds:
- go test -cover ./...
testd:
cmds:
- go test -cover -v ./...
race:
cmds:
- go test -race -v ./...
build:
cmds:
- GOOS=darwin GOARCH=arm64 go build -o ./bin/mac_arm64/awsrouters *.go
buildMacIntel:
cmds:
- GOOS=darwin GOARCH=amd64 go build -o ./bin/mac_amd64/awsrouters *.go
buildwindows:
cmds:
- GOOS=windows GOARCH=amd64 go build -o ./bin/windows_amd64/awsrouters.exe *.go
buildlinux:
cmds:
- GOOS=linux GOARCH=amd64 go build -o ./bin/linux_amd64/awsrouters *.go
buildall:
deps:
- build
- buildwindows
- buildlinux
docs:
cmds:
- echo "Open the browser and navigate to http://localhost:6060/docs"
- echo "To get all methods, fields and types regardless if they are exported or not, use '?m=all' at the end of the URL"
- godoc -http=:6060
cleanexports:
cmds:
- rm -f csv/*.csv
- rm -f excel/*.xlsx