1 Star 0 Fork 1

yanglbsjz/go-echarts

forked from xfl/go-echarts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenjiandongx 提交于 2020-11-23 15:13 . Upgrade version to v2.2.3
#!/bin/bash
version="v2.2.3"
function pre_check() {
info=$(diff -u <(echo -n) <(format))
if [ -n "$info" ]; then
echo ">> Make sure you have formatted the codebase before committing."
echo ">> Use 'git status' command to show what have changed."
exit 1
fi
}
function format() {
go fmt ./... && ls -d */ | xargs goimports -w
}
function test() {
go test -v ./...
}
function release() {
pre_check
echo ">> Building tag..."
git tag -a $version -m "Release: $version"
echo ">> Pushing tag to the remote...."
git push origin $version
}
function help() {
echo "$0 --cmd [format|test|release]"
}
if [ "$1" == "" ]; then
help
elif [ "$1" == "format" ];then
format
elif [ "$1" == "test" ];then
test
elif [ "$1" == "release" ];then
release
else
help
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yanglbsjz/go-echarts.git
git@gitee.com:yanglbsjz/go-echarts.git
yanglbsjz
go-echarts
go-echarts
master

搜索帮助