-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
47 lines (33 loc) · 801 Bytes
/
Makefile
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
tools:
go install honnef.co/go/tools/cmd/staticcheck@latest
go install golang.org/x/tools/cmd/goimports@latest
lint:
go vet ./...
staticcheck ./...
up:
docker-compose up -d
test:
go test -parallel 20 ./...
test_v:
go test -parallel 20 -v ./...
test_short:
go test -parallel 20 ./... -short
test_race:
go test ./... -short -race
test_stress:
go test -tags=stress -parallel 30 -timeout=15m ./...
bench:
go test -bench ./...
wait:
go run github.com/ThreeDotsLabs/wait-for@latest localhost:8080
build:
go build ./...
fmt:
go fmt ./...
goimports -l -w .
update_watermill:
go get -u github.com/ThreeDotsLabs/watermill
go mod tidy
sed -i '\|go 1\.|d' go.mod
go mod edit -fmt
.PHONY: ci tools lint up test test_v test_short test_race test_stress bench fmt update_watermill