代码拉取完成,页面将自动刷新
LINTIGNOREDOT='internal/features.+should not use dot imports'
LINTIGNOREDOC='service/[^/]+/(api)\.go:.+(comment on exported|should have comment or be unexported)'
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " api_info to print a list of services and versions"
@echo " build to go build the SDK"
@echo " deps to go get the SDK dependencies"
@echo " generate to go generate and make services"
@echo " generate-protocol-test to generate protocol tests"
@echo " integration to run integration tests"
@echo " lint to lint the SDK"
@echo " services to generate services"
@echo " unit to run unit tests"
default: generate
generate-protocol-test:
go generate ./internal/protocol/...
generate-test: generate-protocol-test
generate:
go generate ./internal/endpoints
@make services
services:
go generate ./service
integration: deps
go test ./internal/test/integration/... -tags=integration
gucumber
lint: deps
@echo "golint ./..."
@lint=`golint ./...`; \
lint=`echo "$$lint" | grep -E -v -e ${LINTIGNOREDOT} -e ${LINTIGNOREDOC}`; \
echo "$$lint"; \
if [ "$$lint" != "" ]; then exit 1; fi
unit: deps build lint
go test ./...
build:
go build ./...
deps:
@go get ./...
@go get github.com/lsegal/gucumber/cmd/gucumber
@go get github.com/golang/lint/golint
api_info:
@go run internal/model/cli/api-info/api-info.go
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。