Appveyor lots of debug code
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
This commit is contained in:
parent
35b82934f1
commit
396ac97b8b
1 changed files with 26 additions and 2 deletions
28
appveyor.yml
28
appveyor.yml
|
@ -1,5 +1,6 @@
|
||||||
# version format
|
# version format
|
||||||
version: '{build}'
|
version: '{build}'
|
||||||
|
deploy: on
|
||||||
|
|
||||||
# branches to build
|
# branches to build
|
||||||
branches:
|
branches:
|
||||||
|
@ -29,10 +30,33 @@ test_script:
|
||||||
chmod -R 777 /appveyor/projects
|
chmod -R 777 /appveyor/projects
|
||||||
npm install
|
npm install
|
||||||
npm test
|
npm test
|
||||||
echo running test integration
|
|
||||||
npm run test:integration
|
npm run test:integration
|
||||||
echo Success
|
|
||||||
|
after_test:
|
||||||
|
- sh: echo after_test
|
||||||
|
|
||||||
|
deploy_script:
|
||||||
|
- 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
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
- path: ./*_sc-core.7z
|
||||||
|
|
||||||
|
# on successful build
|
||||||
|
on_success:
|
||||||
|
- sh: echo on_success
|
||||||
|
|
||||||
|
# on build failure
|
||||||
|
on_failure:
|
||||||
|
- sh: echo on_failure
|
||||||
|
|
||||||
on_finish:
|
on_finish:
|
||||||
|
- sh: echo on_finish
|
||||||
- sh: export APPVEYOR_SSH_BLOCK=true
|
- sh: export APPVEYOR_SSH_BLOCK=true
|
||||||
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
|
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
|
||||||
|
|
Loading…
Reference in a new issue