Skip to content

Commit 1fd6095

Browse files
committed
make CI build fail if one of the apps fail
1 parent f5529b8 commit 1fd6095

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ build_app() {
196196

197197
name="${1%/} "
198198
printf " $name"
199-
name_back=$(backspace_len ${#name})
199+
name_and_target="$name $2 $3"
200+
name_back=$(backspace_len ${#name_and_target})
200201

201202
build_target $2 $3
202203
if [ $? -eq 0 ]; then
@@ -208,6 +209,10 @@ build_app() {
208209
printf "\n\n"
209210
tail -n 100 ghost-build.log | awk '$0=" "$0'
210211
printf "\n"
212+
213+
if [[ $CI_BUILD == 1 ]]; then
214+
exit 1
215+
fi
211216
fi
212217
((apps_total = apps_total + 1))
213218

0 commit comments

Comments
 (0)