32 Star 72 Fork 58

openEuler / sysmaster

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.sh 735 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
flag_file="$SCRIPT_DIR/.git/hooks/commit-msg"
set -e
# check flag_file
if [ -e "$flag_file" ]; then
echo "Not first build, skipping preinstall."
else
echo "This is the first build, preinstall."
# set pre-commit init-templatedir
git config --global init.templateDir ~/.git-template
pre-commit init-templatedir ~/.git-template
pre-commit install
# prepare environment
for script in `ls ci/00-*.sh | sort -u -d `; do
sh -x $script;
done
. "$HOME/.cargo/env"
touch "$flag_file"
fi
# execute test scripts
for script in `ls ci/*.sh | sort -u -d | grep -v "00-pre.sh" `; do
date; sh -x $script;
done
Rust
1
https://gitee.com/openeuler/sysmaster.git
git@gitee.com:openeuler/sysmaster.git
openeuler
sysmaster
sysmaster
master

搜索帮助