More appyveyor tweaking. Also fuck npm
continuous-integration/appveyor/branch AppVeyor build failed Details

master
Jonatan Nilsson 2022-08-18 10:23:53 +00:00
parent 993fd60a43
commit d7c6308545
2 changed files with 30 additions and 3 deletions

View File

@ -51,14 +51,21 @@ build_script:
rm base
cp -Rf ../base ./base
npm install --only=dev
if [ $? -ne 0 ]; then
mv package.json fuck-you-npm-package.json
mv build-package.json package.json
npm install
CHECK=$?
if [ $CHECK -ne 0 ]; then
echo "Command failed with error code $CHECK"
SUCCESS=0;
continue;
fi;
npm run build
if [ $? -ne 0 ]; then
CHECK=$?
if [ $CHECK -ne 0 ]; then
echo "Command failed with error code $CHECK"
SUCCESS=0;
continue;
fi;
@ -71,6 +78,12 @@ build_script:
-H "Content-Type: application/json" \
https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases \
-d "{\"tag_name\":\"v${CURR_VER}\",\"name\":\"v${CURR_NAME}\",\"body\":\"Automatic release from Appveyor from ${APPVEYOR_REPO_COMMIT} :\n\n${APPVEYOR_REPO_COMMIT_MESSAGE}\"}")
CHECK=$?
if [ $CHECK -ne 0 ]; then
echo "Command failed with error code $CHECK"
SUCCESS=0;
continue;
fi;
RELEASE_ID=$(echo $RELEASE_RESULT | jq -r .id)
echo "Adding ${CURR_VER}_build-sc.7z to release ${RELEASE_ID}"
curl \
@ -78,6 +91,12 @@ build_script:
-H "Authorization: token $deploytoken" \
-F "attachment=@${CURR_VER}_build-sc.7z" \
https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases/$RELEASE_ID/assets
CHECK=$?
if [ $CHECK -ne 0 ]; then
echo "Command failed with error code $CHECK"
SUCCESS=0;
continue;
fi;
echo "Deplying to production"
MAN_PORT=$(cat package.json | jq -r .port)
@ -89,6 +108,7 @@ build_script:
done
if [ $SUCCESS -eq 0 ]; then
echo "One or more jobs failed to build"
exit 1;
fi;

View File

@ -0,0 +1,7 @@
{
"dependencies": {
"asbundle": "^2.6.1",
"mithril": "^2.2.2",
"service-core": "^3.0.0-beta.17"
}
}