makefile: check split

This commit is contained in:
Michał Matczuk
2017-09-21 21:33:43 +02:00
parent 46603152a1
commit 0b29eb569a

View File

@@ -1,20 +1,35 @@
all: check test integration-test
.PHONY: check
check:
gofmt -s -l . | ifne false
go vet ./...
golint -set_exit_status ./...
misspell ./...
ineffassign .
check: .check-fmt .check-vet .check-lint .check-misspell .check-ineffassign
.PHONY: .check-fmt
.check-fmt:
@gofmt -s -l . | ifne false
.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
test:
go test -cover -race ./...
@go test -cover -race ./...
.PHONY: integration-test
integration-test:
go test -cover -tags integration
@go test -cover -tags integration .
.PHONY: get-deps
get-deps: