mirror of https://github.com/helm/helm
This commit adds a target called setup-gotools which will download and install golint and go vet. A developer who wants to run tests for an individual component (manager, resourcifier, expandybird) can run `make test` to run golint, vet, and test and in that directory. On first run, a developer will want to run `make setup-gotools` so that they have golint and vet to use locally. There is a `make test` command in each component because running tests from the root directory will result in lots of output. Running tests in individual components will help isolate the tests for the component that is being modified and result in more clear output.pull/207/head
parent
43d838f280
commit
14d75f4d21
@ -1,2 +1,4 @@
|
||||
GO_VET := echo using go vet
|
||||
GO_TEST := go test -v ./...
|
||||
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 ./...
|
||||
|
Loading…
Reference in new issue