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