Fix go vet and use go test -race

This commit is contained in:
Daniel Nelson
2018-04-02 14:13:15 -07:00
parent 7079c6ee60
commit e775c886b7
3 changed files with 29 additions and 35 deletions

View File

@@ -20,16 +20,9 @@ ifdef VERSION
endif
all:
$(MAKE) fmtcheck
$(MAKE) deps
$(MAKE) telegraf
ci-test:
$(MAKE) deps
$(MAKE) fmtcheck
$(MAKE) vet
$(MAKE) test
deps:
go get -u github.com/golang/lint/golint
go get github.com/sparrc/gdm
@@ -62,9 +55,6 @@ fmtcheck:
fi
@echo '[INFO] done.'
lint:
golint ./...
test-windows:
go test ./plugins/inputs/ping/...
go test ./plugins/inputs/win_perf_counters/...
@@ -82,7 +72,10 @@ vet:
exit 1; \
fi
test-all: vet
test-ci: fmtcheck vet
go test -short./...
test-all: fmtcheck vet
go test ./...
package: