1 Star 3 Fork 2

baetyl / baetyl-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 737 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhaoxin 提交于 2021-12-16 17:14 . baetyl-1547 bugfix (#301)
HOMEDIR := $(shell pwd)
OUTDIR := $(HOMEDIR)/output
GIT_TAG:=$(shell git tag --contains HEAD)
GIT_REV:=git-$(shell git rev-parse --short HEAD)
VERSION:=$(if $(GIT_TAG),$(GIT_TAG),$(GIT_REV))
GO = go
GO_MOD = $(GO) mod
GO_ENV = env CGO_ENABLED=0
GO_BUILD = $(GO_ENV) $(GO) build
GOTEST = $(GO) test
GOPKGS = $$($(GO) list ./...)
all: test
prepare: prepare-dep
prepare-dep:
git config --global http.sslVerify false
set-env:
$(GO) env -w GOPROXY=https://goproxy.cn
$(GO) env -w GONOSUMDB=\*
compile:build
build: set-env
$(GO_MOD) tidy
$(GO_BUILD) ./...
test: fmt test-case
test-case: set-env
$(GOTEST) -race -cover -coverprofile=coverage.out $(GOPKGS)
fmt:
go fmt ./...
.PHONY: all prepare compile test build
Go
1
https://gitee.com/baetyl/baetyl-go.git
git@gitee.com:baetyl/baetyl-go.git
baetyl
baetyl-go
baetyl-go
master

搜索帮助