9 Star 32 Fork 12

Gitee 极速下载/NSQ

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/nsqio/nsq
克隆/下载
test.sh 835 Bytes
一键复制 编辑 原始数据 按行查看 历史
Pierce Lopez 提交于 2021-09-04 19:15 . test: add "go vet"
#!/bin/sh
set -e
GOMAXPROCS=1 go test -timeout 90s ./...
if [ "$GOARCH" = "amd64" ] || [ "$GOARCH" = "arm64" ]; then
# go test: -race is only supported on linux/amd64, linux/ppc64le,
# linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64
GOMAXPROCS=4 go test -timeout 90s -race ./...
fi
# no tests, but a build is something
for dir in apps/*/ bench/*/; do
dir=${dir%/}
if grep -q '^package main$' $dir/*.go 2>/dev/null; then
echo "building $dir"
go build -o $dir/$(basename $dir) ./$dir
else
echo "(skipped $dir)"
fi
done
# disable "composite literal uses unkeyed fields"
go vet -composites=false ./...
FMTDIFF="$(find apps internal nsqd nsqlookupd -name '*.go' -exec gofmt -d '{}' ';')"
if [ -n "$FMTDIFF" ]; then
printf '%s\n' "$FMTDIFF"
exit 1
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/NSQ.git
git@gitee.com:mirrors/NSQ.git
mirrors
NSQ
NSQ
master

搜索帮助