2017-07-31 16:11:42 +02:00
|
|
|
all: check test integration-test
|
2017-07-21 15:13:09 +02:00
|
|
|
|
|
|
|
|
.PHONY: check
|
|
|
|
|
check:
|
|
|
|
|
gofmt -s -l . | ifne false
|
|
|
|
|
go vet ./...
|
2017-07-25 14:12:25 +02:00
|
|
|
golint -set_exit_status ./...
|
2017-07-21 15:13:09 +02:00
|
|
|
misspell ./...
|
|
|
|
|
ineffassign .
|
|
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
|
test:
|
2017-07-31 16:11:42 +02:00
|
|
|
go test -cover -race ./...
|
|
|
|
|
|
|
|
|
|
.PHONY: integration-test
|
|
|
|
|
integration-test:
|
|
|
|
|
go test -cover -tags integration
|
2017-07-21 15:13:09 +02:00
|
|
|
|
|
|
|
|
.PHONY: get-deps
|
|
|
|
|
get-deps:
|
|
|
|
|
go get -t ./...
|
|
|
|
|
|
|
|
|
|
go get -u github.com/golang/lint/golint
|
|
|
|
|
go get -u github.com/client9/misspell/cmd/misspell
|
|
|
|
|
go get -u github.com/gordonklaus/ineffassign
|