From 73b5eb97438c99b48864a6fd86ed7960dd87f8e1 Mon Sep 17 00:00:00 2001 From: wangfeng Date: Wed, 1 Feb 2023 15:00:26 +0800 Subject: [PATCH] =?UTF-8?q?#I6C8QK=20=E6=96=B0=E5=A2=9E3=E4=B8=AA=E5=8F=AF?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E8=84=9A=E6=9C=AC,=20=E7=94=A8=E4=BA=8E?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=92=8C=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.test.sh | 12 ++++++++++++ push-gitee.sh | 8 ++++++++ push-github.sh | 7 +++++++ 3 files changed, 27 insertions(+) create mode 100755 go.test.sh create mode 100755 push-gitee.sh create mode 100755 push-github.sh diff --git a/go.test.sh b/go.test.sh new file mode 100755 index 0000000..d855e40 --- /dev/null +++ b/go.test.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e +echo "" > coverage.txt + +for d in $(go list ./... | grep -v vendor); do + go test -gcflags=-l -race -coverprofile=profile.out -covermode=atomic "$d" + if [ -f profile.out ]; then + cat profile.out >> coverage.txt + rm profile.out + fi +done \ No newline at end of file diff --git a/push-gitee.sh b/push-gitee.sh new file mode 100755 index 0000000..8de5ab1 --- /dev/null +++ b/push-gitee.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e + +git remote set-url origin https://gitee.com/quant1x/pandas.git +git push --all +git push --tags +git remote -vv \ No newline at end of file diff --git a/push-github.sh b/push-github.sh new file mode 100755 index 0000000..9a20c78 --- /dev/null +++ b/push-github.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e +git remote set-url origin https://github.com/quant1x/pandas.git +git push --all +git push --tags +git remote -vv \ No newline at end of file -- Gitee