2 Star 9 Fork 3

BeyondStorage/go-storage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
SHELL := /bin/bash
.PHONY: all check format vet build test generate tidy integration_test build-all
help:
@echo "Please use \`make <target>\` where <target> is one of"
@echo " check to do static check"
@echo " build to create bin directory and build"
@echo " generate to generate code"
@echo " test to run test"
@echo " build-all to build all packages"
check: vet
format:
gofmt -w -l .
vet:
go vet ./...
generate:
go generate ./...
gofmt -w -l .
build: tidy generate format check
go build ./...
build-all:
for f in $$(find . -name go.mod); \
do make -C $$(dirname $$f) build; \
done
test:
go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
go tool cover -html="coverage.txt" -o "coverage.html"
test-all:
for f in $$(find . -name go.mod); \
do make -C $$(dirname $$f) test; \
done
tidy:
go mod tidy
go mod verify
tidy-all:
for f in $$(find . -name go.mod); \
do make -C $$(dirname $$f) tidy; \
done
clean:
find . -type f -name 'generated.go' -delete
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/beyondstorage/go-storage.git
[email protected]:beyondstorage/go-storage.git
beyondstorage
go-storage
go-storage
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385