appveyor: If any one builds fail, mark the entire ci as failure
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
This commit is contained in:
parent
6a64d5e019
commit
1373a5983d
1 changed files with 14 additions and 2 deletions
16
appveyor.yml
16
appveyor.yml
|
@ -34,6 +34,8 @@ build_script:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
SUCCESS=1
|
||||
|
||||
for f in *; do
|
||||
[ ! -d "$f" ] || [ -L "$f" ] || [ "$f" = "base" ] && continue;
|
||||
echo "checking $f";
|
||||
|
@ -50,10 +52,16 @@ build_script:
|
|||
cp -Rf ../base ./base
|
||||
|
||||
npm install --only=dev
|
||||
if [ $? -ne 0 ]; then continue; fi;
|
||||
if [ $? -ne 0 ]; then
|
||||
SUCCESS=0;
|
||||
continue;
|
||||
fi;
|
||||
|
||||
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
|
||||
echo "Creating release on gitea"
|
||||
|
@ -80,6 +88,10 @@ build_script:
|
|||
cd..
|
||||
done
|
||||
|
||||
if [ SUCCESS -eq 0 ]; then
|
||||
exit 1;
|
||||
fi;
|
||||
|
||||
# on build failure
|
||||
on_failure:
|
||||
- sh: echo on_failure
|
||||
|
|
Loading…
Reference in a new issue