batch build

This commit is contained in:
skiffer-git 2022-06-10 18:05:36 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent 6515599986
commit 5df0598aea

View File

@ -43,19 +43,18 @@ echo "wait all build finish"
success_num = 0 success_num = 0
for ((i = 0; i < ${#service_source_root[*]}; i++)); do for ((i = 0; i < ${#service_source_root[*]}; i++)); do
echo "wait pid: " ${build_pid_array[i]} ${service_names[$i]}
echo "wait pid: " ${build_pid_array[i]}
wait ${build_pid_array[i]} wait ${build_pid_array[i]}
stat=$? stat=$?
echo ${build_pid_array[i]} " " $stat echo ${build_pid_array[i]} " " $stat
if [ $stat == 0 ] if [ $stat == 0 ]
then then
echo -e "${RED_PREFIX}${service_names[$i]} build failed ${COLOR_SUFFIX}\n"
exit -1
else
echo -e "${GREEN_PREFIX}${service_names[$i]} successfully be built ${COLOR_SUFFIX}\n" echo -e "${GREEN_PREFIX}${service_names[$i]} successfully be built ${COLOR_SUFFIX}\n"
success_num++ success_num++
else
echo -e "${RED_PREFIX}${service_names[$i]} build failed ${COLOR_SUFFIX}\n"
exit -1
fi fi
done done