makefile: added benchmarks target
This commit is contained in:
10
Makefile
10
Makefile
@@ -1,4 +1,4 @@
|
|||||||
all: check test integration-test
|
all: check test bench
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check: .check-fmt .check-vet .check-lint .check-ineffassign .check-mega .check-misspell
|
check: .check-fmt .check-vet .check-lint .check-ineffassign .check-mega .check-misspell
|
||||||
@@ -29,11 +29,11 @@ check: .check-fmt .check-vet .check-lint .check-ineffassign .check-mega .check-m
|
|||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@go test -cover -race ./...
|
@go test -cover -race -tags all ./...
|
||||||
|
|
||||||
.PHONY: integration-test
|
.PHONY: bench
|
||||||
integration-test:
|
bench:
|
||||||
@go test -cover -tags integration .
|
@go test -tags all -run=XXX -bench=. -benchmem ./...
|
||||||
|
|
||||||
.PHONY: get-deps
|
.PHONY: get-deps
|
||||||
get-deps:
|
get-deps:
|
||||||
|
|||||||
Reference in New Issue
Block a user