You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GOFMT = gofmtresult=$$(gofmt -e -l -s ${GO_FILES} ${GO_PACKAGES}); if [[ -n $$gofmtresult ]]; then echo "gofmt errors found in the following files: $${gofmtresult}"; false; fi;
GOTEST = go test --cover --race -v
bootstrap:
${DEV_ENV_CMD} glide install
glideup:
${DEV_ENV_CMD} glide up
setup-gotools:
go get -u github.com/golang/lint/golint
go get -u golang.org/x/tools/cmd/cover
go get -u golang.org/x/tools/cmd/vet
test: test-style test-unit
test-style:
${DEV_ENV_CMD} bash -c '${GOFMT}'
${DEV_ENV_CMD} sh -c 'go vet $(repo_path) $(GO_PACKAGES_REPO_PATH)'
@for i in$(addsuffix /...,$(GO_PACKAGES));do\
${DEV_ENV_CMD} golint $$i;\
done
test-unit:
${DEV_ENV_PREFIX_CGO_ENABLED}${DEV_ENV_IMAGE} sh -c '${GOTEST} $$(glide nv)'