-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (36 loc) · 1.04 KB
/
Makefile
File metadata and controls
53 lines (36 loc) · 1.04 KB
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
46
47
48
49
50
51
52
53
.DEFAULT_GOAL := test
fmt:
golangci-lint run --disable-all --no-config -Egofmt --fix
golangci-lint run --disable-all --no-config -Egofumpt --fix
staticcheck: fmt
staticcheck .
revive: fmt
revive -config revive.toml .
golangci: fmt
golangci-lint run
lint: fmt staticcheck revive golangci
build: lint
go build .
install: build
go install .
test:
go test -shuffle on .
testr:
go test -race -shuffle on .
testv:
go test -shuffle on -v .
bench-quick:
go test -bench='Basic|WithGroupChaining|WithAttrsChaining' -benchmem -benchtime=3s -count=3 -run=NONE
bench:
go test -bench=. -benchmem -benchtime=5s -count=10 -run=NONE
bench-baseline:
go test -bench=. -benchmem -benchtime=5s -count=10 -run=NONE > bench-baseline.txt
bench-compare:
go test -bench=. -benchmem -benchtime=5s -count=10 -run=NONE > bench-new.txt
benchstat bench-baseline.txt bench-new.txt
clean:
go clean -i -r -cache
.PHONY: fmt staticcheck revive golangci lint
.PHONY: test testv testr
.PHONY: bench-quick bench bench-baseline bench-compare
.PHONY: build install clean