From 1373a5983df6c3085ef71316ef378d7889d3a9c5 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 18 Aug 2022 10:09:17 +0000 Subject: [PATCH] appveyor: If any one builds fail, mark the entire ci as failure --- appveyor.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 3c2700d..0a90174 100644 --- a/appveyor.yml +++ b/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