mirror of https://github.com/VinGarcia/ksql.git
Add Makefile
parent
38ce8a9b0e
commit
4e156b8f26
|
@ -0,0 +1 @@
|
||||||
|
.make.setup
|
|
@ -0,0 +1,18 @@
|
||||||
|
args=
|
||||||
|
path=./...
|
||||||
|
|
||||||
|
GOPATH=$(shell go env GOPATH)
|
||||||
|
|
||||||
|
test: setup
|
||||||
|
$(GOPATH)/bin/richgo test $(path) $(args)
|
||||||
|
|
||||||
|
lint: setup
|
||||||
|
@$(GOPATH)/bin/golint -set_exit_status -min_confidence 0.9 $(path) $(args)
|
||||||
|
@go vet $(path) $(args)
|
||||||
|
@echo "Golint & Go Vet found no problems on your code!"
|
||||||
|
|
||||||
|
setup: .make.setup
|
||||||
|
.make.setup:
|
||||||
|
go get github.com/kyoh86/richgo
|
||||||
|
go get golang.org/x/lint
|
||||||
|
touch .make.setup
|
Loading…
Reference in New Issue