makefile: check split
This commit is contained in:
31
Makefile
31
Makefile
@@ -1,20 +1,35 @@
|
|||||||
all: check test integration-test
|
all: check test integration-test
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check:
|
check: .check-fmt .check-vet .check-lint .check-misspell .check-ineffassign
|
||||||
gofmt -s -l . | ifne false
|
|
||||||
go vet ./...
|
.PHONY: .check-fmt
|
||||||
golint -set_exit_status ./...
|
.check-fmt:
|
||||||
misspell ./...
|
@gofmt -s -l . | ifne false
|
||||||
ineffassign .
|
|
||||||
|
.PHONY: .check-vet
|
||||||
|
.check-vet:
|
||||||
|
@go vet ./...
|
||||||
|
|
||||||
|
.PHONY: .check-lint
|
||||||
|
.check-lint:
|
||||||
|
@golint -set_exit_status ./...
|
||||||
|
|
||||||
|
.PHONY: .check-misspell
|
||||||
|
.check-misspell:
|
||||||
|
@misspell ./...
|
||||||
|
|
||||||
|
.PHONY: .check-ineffassign
|
||||||
|
.check-ineffassign:
|
||||||
|
@ineffassign .
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
go test -cover -race ./...
|
@go test -cover -race ./...
|
||||||
|
|
||||||
.PHONY: integration-test
|
.PHONY: integration-test
|
||||||
integration-test:
|
integration-test:
|
||||||
go test -cover -tags integration
|
@go test -cover -tags integration .
|
||||||
|
|
||||||
.PHONY: get-deps
|
.PHONY: get-deps
|
||||||
get-deps:
|
get-deps:
|
||||||
|
|||||||
Reference in New Issue
Block a user