1 Star 2 Fork 0

golang/grpcui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
dev_build_version=$(shell git describe --tags --always --dirty)
# TODO: run golint and errcheck, but only to catch *new* violations and
# decide whether to change code or not (e.g. we need to be able to whitelist
# violations already in the code). They can be useful to catch errors, but
# they are just too noisy to be a requirement for a CI -- we don't even *want*
# to fix some of the things they consider to be violations.
.PHONY: ci
ci: deps checkgofmt vet staticcheck ineffassign predeclared test
.PHONY: deps
deps:
go get -d -v -t ./...
.PHONY: updatedeps
updatedeps:
go get -d -v -t -u -f ./...
.PHONY: install
install:
go install -ldflags '-X "main.version=dev build $(dev_build_version)"' ./...
.PHONY: release
release:
@GO111MODULE=on go install github.com/goreleaser/goreleaser
goreleaser --rm-dist
.PHONY: docker
docker:
@echo $(dev_build_version) > VERSION
docker build -t fullstorydev/grpcui:$(dev_build_version) .
@rm VERSION
.PHONY: generate
generate:
@go install github.com/go-bindata/go-bindata/go-bindata
@go install google.golang.org/protobuf/cmd/protoc-gen-go
@go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
go generate ./...
.PHONY: checkgofmt
checkgofmt:
gofmt -s -l .
@if [ -n "$$(gofmt -s -l .)" ]; then \
exit 1; \
fi
.PHONY: vet
vet:
go vet ./...
.PHONY: staticcheck
staticcheck:
@GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck
staticcheck ./...
.PHONY: ineffassign
ineffassign:
@GO111MODULE=on go install github.com/gordonklaus/ineffassign
ineffassign .
.PHONY: predeclared
predeclared:
@GO111MODULE=on go install github.com/nishanths/predeclared
predeclared .
# Intentionally omitted from CI, but target here for ad-hoc reports.
.PHONY: golint
golint:
@GO111MODULE=on go install golang.org/x/lint/golint
golint -min_confidence 0.9 -set_exit_status ./...
# Intentionally omitted from CI, but target here for ad-hoc reports.
.PHONY: errcheck
errcheck:
@GO111MODULE=on go install github.com/kisielk/errcheck
errcheck ./...
.PHONY: test
test:
go test -race ./...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gober/grpcui.git
git@gitee.com:gober/grpcui.git
gober
grpcui
grpcui
master

搜索帮助