Skip to content

Commit

Permalink
ci: fix curvbs buiild in ut.sh
Browse files Browse the repository at this point in the history
Signed-off-by: ilixiaocui <[email protected]>
  • Loading branch information
ilixiaocui committed Dec 20, 2022
1 parent b9bc03d commit b871524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ set -e

#test_bin_dirs="bazel-bin/test/ bazel-bin/nebd/test/ bazel-bin/curvefs/test/"
if [ $1 == "curvebs" ];then
make build stor=bs ci=1 dep=1 only=test/*
make build stor=bs ci=1 only=nebd/test/*
make build stor=bs ci=1 dep=1
test_bin_dirs="bazel-bin/test/ bazel-bin/nebd/test/"
elif [ $1 == "curvefs" ];then
make build stor=fs ci=1 dep=1 only=curvefs/test/*
Expand Down
6 changes: 4 additions & 2 deletions util/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,13 @@ build_target() {
g_build_opts+=("--config=gcc7-later")
fi

alltarget=`get_target`
if [ $g_ci -eq 1 ]; then
g_build_opts+=("--collect_code_coverage")
alltarget=...
fi

for target in `get_target`
for target in $alltarget
do
bazel build ${g_build_opts[@]} $target
local ret="$?"
Expand All @@ -215,7 +217,7 @@ build_target() {


build_requirements() {
if [ "$g_stor" == "fs" ]; then
if [[ "$g_stor" == "fs" || $g_ci -eq 1 ]]; then
kernel_version=`uname -r | awk -F . '{print $1 * 1000 + $2}'`
if [ $kernel_version -gt 5001 ]; then
g_build_opts+=("--define IO_URING_SUPPORT=1")
Expand Down

0 comments on commit b871524

Please sign in to comment.