2016-01-29 20:53:56 +01:00
|
|
|
.PHONY: test
|
|
|
|
|
|
|
|
all: check test
|
|
|
|
|
|
|
|
check: goimports govet
|
|
|
|
|
2016-05-13 16:27:45 +02:00
|
|
|
vendor:
|
|
|
|
go get golang.org/x/tools/cmd/goimports
|
|
|
|
go get github.com/davecgh/go-spew/spew
|
|
|
|
go get golang.org/x/net/context
|
|
|
|
|
|
|
|
goimports: vendor
|
2016-01-29 20:53:56 +01:00
|
|
|
@echo checking go imports...
|
|
|
|
@! goimports -d . 2>&1 | egrep -v '^$$'
|
|
|
|
|
|
|
|
govet:
|
|
|
|
@echo checking go vet...
|
|
|
|
@go tool vet -structtags=false -methods=false .
|
|
|
|
|
2016-05-13 16:27:45 +02:00
|
|
|
test: vendor
|
2016-01-29 20:53:56 +01:00
|
|
|
go test -v $(TEST_OPTS) ./...
|
|
|
|
|
2016-05-13 16:27:45 +02:00
|
|
|
install: vendor
|
2016-01-29 20:53:56 +01:00
|
|
|
go install github.com/vmware/govmomi/govc
|