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 e823218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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
4 changes: 3 additions & 1 deletion 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 Down

0 comments on commit e823218

Please sign in to comment.