1 Star 0 Fork 17

C-Band/sharingan

forked from DiDi-opensource/sharingan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 835 Bytes
一键复制 编辑 原始数据 按行查看 历史
yufeng 提交于 2020-05-01 11:57 . reorg replayer package
#!/bin/bash
workspace=$(cd $(dirname $0) && pwd -P)
info_msg="\033[;32m[INFO]\033[0m\t"
echo "${info_msg}-> install go1.13"
curl -s https://raw.githubusercontent.com/didi/sharingan-go/recorder/install/go1.13 | sh > /dev/null 2>&1
export GOROOT=/tmp/recorder-go1.13
export PATH=$GOROOT/bin:$PATH
cd ${workspace}/example
echo "${info_msg}-> build example with recorder tag"
go build -tags="recorder"
if [ $? -ne 0 ]; then
exit 1
fi
cd ${workspace}/example
echo "${info_msg}-> build example with replayer tag"
go build -tags="replayer" -gcflags="all=-N -l"
if [ $? -ne 0 ]; then
exit 1
fi
cd ${workspace}/recorder-agent
echo "${info_msg}-> build recorder-agent"
go build
if [ $? -ne 0 ]; then
exit 1
fi
cd ${workspace}/replayer-agent
echo "${info_msg}-> build replayer-agent"
go build
if [ $? -ne 0 ]; then
exit 1
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/C-BAND/sharingan.git
git@gitee.com:C-BAND/sharingan.git
C-BAND
sharingan
sharingan
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385