Update package to new git.nfp.is repo, update appveyor with more deployment scripts
Some checks failed
continuous-integration/appveyor/branch Error parsing appveyor.yml

This commit is contained in:
Jonatan Nilsson 2022-02-18 06:24:52 +00:00
parent be6c24778d
commit 39af3ca162
3 changed files with 24 additions and 10 deletions

View file

@ -24,15 +24,29 @@ environment:
test_script: test_script:
- sh: | - sh: |
mkdir /lib64
ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
chmod -R 777 /appveyor/projects chmod -R 777 /appveyor/projects
npm install npm install
npm test npm test
npm run test:integration npm run test:integration
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
fi
on_finish: on_finish:
- sh: | - sh: |
apk update YELLOW='\033[0;33m'
apk add bash curl openssh NC='\033[0m'
- sh: export APPVEYOR_SSH_BLOCK=true LOCK_FILE="${HOME}/build.lock"
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e - 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."

View file

@ -191,7 +191,7 @@ export default class Util {
execSync('taskkill /pid ' + processor.pid + ' /T /F') execSync('taskkill /pid ' + processor.pid + ' /T /F')
} catch {} } catch {}
}else{ }else{
processor.kill(); processor._kill();
} }
} }
return processor return processor

View file

@ -1,8 +1,8 @@
{ {
"name": "service-core", "name": "service-core",
"version": "2.0.2", "version": "3.0.0-beta.1",
"description": "Core boiler plate code to install node server as windows service", "description": "Core boiler plate code to install node server as windows service",
"main": "lib.mjs", "main": "index.mjs",
"scripts": { "scripts": {
"dev": "nodemon --watch dev/api --watch core --watch runner.mjs --watch db.mjs --watch log.mjs runner.mjs | bunyan", "dev": "nodemon --watch dev/api --watch core --watch runner.mjs --watch db.mjs --watch log.mjs runner.mjs | bunyan",
"test": "eltro \"test/**/*.test.mjs\" -r dot", "test": "eltro \"test/**/*.test.mjs\" -r dot",
@ -27,14 +27,14 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/TheThing/service-core.git" "url": "git+https://git.nfp.is/TheThing/service-core.git"
}, },
"author": "Jonatan Nilsson", "author": "Jonatan Nilsson",
"license": "WTFPL", "license": "WTFPL",
"bugs": { "bugs": {
"url": "https://github.com/TheThing/service-core/issues" "url": "https://git.nfp.is/TheThing/service-core/issues"
}, },
"homepage": "https://github.com/TheThing/service-core#readme", "homepage": "https://git.nfp.is/TheThing/service-core#readme",
"files": [ "files": [
"index.mjs", "index.mjs",
"cli.mjs", "cli.mjs",