From 44f576c1d47c49f67aa72075b103356d492d4aec Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 10 Mar 2022 11:28:29 +0000 Subject: [PATCH] More appveyor stuff :( --- appveyor.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index d7c0e66..63ced50 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -29,10 +29,12 @@ test_script: ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 chmod -R 777 /appveyor/projects npm install - if npm run test -- --ignore-only; then + npm run test -- --ignore-only + if [ $? -ne 0 ] ; exit 1 fi - if npm run test:integration -- --ignore-only; then + npm run test:integration -- --ignore-only + if [ $? -ne 0 ] ; exit 1 fi @@ -42,13 +44,17 @@ artifacts: # on successful build on_success: - sh: | - if apk add curl jq; then + apk add curl jq + if [ $? -eq 0 ]; then echo "Finished installling curl and jq" else exit 1 fi CURR_VER=$(cat package.json | jq -r .version) - if curl -s -X GET -H "Authorization: token $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"v${CURR_VER}\"" > /dev/null; then + echo "Checking https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases for version v${CURR_VER}" + curl -s -X GET -H "Authorization: token $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"v${CURR_VER}\"" > /dev/null + + if [ $? -eq 0 ] ; then echo "Release already exists, nothing to do."; else ./test/7zas a -mx9 "${CURR_VER}_sc-core.7z" package.json index.mjs cli.mjs core bin