appveyor: If any one builds fail, mark the entire ci as failure
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2022-08-18 10:09:17 +00:00
parent 6a64d5e019
commit 1373a5983d

View file

@ -34,6 +34,8 @@ build_script:
exit 1 exit 1
fi fi
SUCCESS=1
for f in *; do for f in *; do
[ ! -d "$f" ] || [ -L "$f" ] || [ "$f" = "base" ] && continue; [ ! -d "$f" ] || [ -L "$f" ] || [ "$f" = "base" ] && continue;
echo "checking $f"; echo "checking $f";
@ -50,10 +52,16 @@ build_script:
cp -Rf ../base ./base cp -Rf ../base ./base
npm install --only=dev npm install --only=dev
if [ $? -ne 0 ]; then continue; fi; if [ $? -ne 0 ]; then
SUCCESS=0;
continue;
fi;
npm run build npm run build
if [ $? -ne 0 ]; then continue; fi; if [ $? -ne 0 ]; then
SUCCESS=0;
continue;
fi;
./7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public ./7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public
echo "Creating release on gitea" echo "Creating release on gitea"
@ -80,6 +88,10 @@ build_script:
cd.. cd..
done done
if [ SUCCESS -eq 0 ]; then
exit 1;
fi;
# on build failure # on build failure
on_failure: on_failure:
- sh: echo on_failure - sh: echo on_failure