More appveyor stuff :(
continuous-integration/appveyor/branch AppVeyor build failed Details

master
Jonatan Nilsson 2022-03-10 11:28:29 +00:00
parent dccad23890
commit 44f576c1d4
1 changed files with 10 additions and 4 deletions

View File

@ -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