-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (27 loc) · 753 Bytes
/
makefile
File metadata and controls
39 lines (27 loc) · 753 Bytes
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
dev: clean build vet lint test
ci: clean build vet test
generate:
go generate ./...
build:
CGO_ENABLED=0 go build
vet:
go vet
test:
go test -cover -coverprofile cov.prof ./...
clean:
go clean
lint:
@which golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run
fieldalignment:
@which fieldalignment || go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
fieldalignment -test=false ./...
coverage: test
go tool cover -html cov.prof -o cov.html
fuzz:
go test -v -run=xxx -fuzz=. -fuzztime=10s ./internal/baxsfile
release: dev clean
CGO_ENABLED=0 go build -ldflags "-s -w"
strip -s baxs
misc:
go install golang.org/x/tools/cmd/stringer@latest