mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 13:36:51 +02:00
24 lines
402 B
Makefile
24 lines
402 B
Makefile
|
.PHONY: test
|
||
|
|
||
|
all: check test
|
||
|
|
||
|
check: goimports govet
|
||
|
|
||
|
goimports:
|
||
|
@echo checking go imports...
|
||
|
@go get golang.org/x/tools/cmd/goimports
|
||
|
@! goimports -d . 2>&1 | egrep -v '^$$'
|
||
|
|
||
|
govet:
|
||
|
@echo checking go vet...
|
||
|
@go tool vet -structtags=false -methods=false .
|
||
|
|
||
|
test:
|
||
|
go test -v $(TEST_OPTS) ./...
|
||
|
|
||
|
install:
|
||
|
go install github.com/vmware/govmomi/govc
|
||
|
|
||
|
doc: install
|
||
|
./govc/usage.sh > ./govc/USAGE.md
|