mirror of https://github.com/helm/helm
parent
ef665993dd
commit
46588cd9dd
@ -1,4 +1,21 @@
|
||||
SETUP_GOTOOLS := @echo "Installing golint and vet" && go get -u github.com/golang/lint/golint && go get -u -v golang.org/x/tools/cmd/vet
|
||||
GO_VET := @echo "Running go vet ..." && go vet ./...
|
||||
GO_LINT := @echo "Running golint ..." && golint ./...
|
||||
GO_TEST := @echo "Running tests ..." && go test -v ./...
|
||||
.PHONY: test-unit
|
||||
test-unit:
|
||||
@echo Running tests...
|
||||
go test -v ./...
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
@echo Running golint...
|
||||
golint ./...
|
||||
|
||||
.PHONY: vet
|
||||
vet:
|
||||
@echo Running go vet...
|
||||
go vet ./...
|
||||
|
||||
.PHONY: setup-gotools
|
||||
setup-gotools:
|
||||
@echo Installing golint
|
||||
go get -u github.com/golang/lint/golint
|
||||
@echo Installing vet
|
||||
go get -u -v golang.org/x/tools/cmd/vet
|
||||
|
Loading…
Reference in new issue