-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (39 loc) · 1.25 KB
/
Makefile
File metadata and controls
57 lines (39 loc) · 1.25 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
54
55
56
57
.PHONY: build test test-unit test-integration test-e2e test-security test-stress test-automation test-all test-race test-cover test-bench test-bench-full test-verbose fmt vet lint clean
build:
go build ./...
test:
GOMAXPROCS=2 go test -count=1 -p 1 ./...
test-unit:
GOMAXPROCS=2 go test -count=1 -p 1 ./pkg/...
test-integration:
GOMAXPROCS=2 go test -count=1 -p 1 ./tests/integration/...
test-e2e:
GOMAXPROCS=2 go test -count=1 -p 1 ./tests/e2e/...
test-security:
GOMAXPROCS=2 go test -count=1 -p 1 ./tests/security/...
test-stress:
GOMAXPROCS=2 go test -count=1 -p 1 ./tests/stress/...
test-automation:
GOMAXPROCS=2 go test -count=1 -p 1 ./tests/automation/...
test-all:
GOMAXPROCS=2 go test -count=1 -p 1 ./...
test-race:
GOMAXPROCS=2 go test -count=1 -race -p 1 ./...
test-cover:
GOMAXPROCS=2 go test -count=1 -race -p 1 -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
test-bench:
GOMAXPROCS=2 go test -count=1 -bench=. -benchmem ./...
test-bench-full:
GOMAXPROCS=2 go test -count=1 -bench=. -benchmem -benchtime=1s ./...
test-verbose:
GOMAXPROCS=2 go test -count=1 -race -p 1 -v ./...
fmt:
gofmt -w .
goimports -w .
vet:
go vet ./...
lint:
golangci-lint run ./...
clean:
rm -f coverage.out coverage.html