more appveyor testing
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
This commit is contained in:
parent
396ac97b8b
commit
17b100bb07
1 changed files with 18 additions and 6 deletions
24
appveyor.yml
24
appveyor.yml
|
@ -50,13 +50,25 @@ artifacts:
|
|||
|
||||
# on successful build
|
||||
on_success:
|
||||
- sh: echo on_success
|
||||
- sh: |
|
||||
CURR_VER=$(npm view package.json version)
|
||||
if curl -s -X GET -H "token: $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"v${CURR_VER}\"" > /dev/null; 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
|
||||
npm publish
|
||||
fi
|
||||
- sh: |
|
||||
YELLOW='\033[0;33m'
|
||||
NC='\033[0m'
|
||||
LOCK_FILE="${HOME}/build.lock"
|
||||
export APPVEYOR_SSH_BLOCK=true
|
||||
touch "${LOCK_FILE}"
|
||||
echo -e "Build paused. To resume it, open a bash session to run '${YELLOW}rm \"${LOCK_FILE}\"${NC}' command."
|
||||
while [ -f "${LOCK_FILE}" ]; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# on build failure
|
||||
on_failure:
|
||||
- sh: echo on_failure
|
||||
|
||||
on_finish:
|
||||
- sh: echo on_finish
|
||||
- sh: export APPVEYOR_SSH_BLOCK=true
|
||||
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
|
||||
|
|
Loading…
Reference in a new issue