More appyveyor tweaking. Also fuck npm
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
993fd60a43
commit
d7c6308545
2 changed files with 30 additions and 3 deletions
26
appveyor.yml
26
appveyor.yml
|
@ -51,14 +51,21 @@ build_script:
|
||||||
rm base
|
rm base
|
||||||
cp -Rf ../base ./base
|
cp -Rf ../base ./base
|
||||||
|
|
||||||
npm install --only=dev
|
mv package.json fuck-you-npm-package.json
|
||||||
if [ $? -ne 0 ]; then
|
mv build-package.json package.json
|
||||||
|
|
||||||
|
npm install
|
||||||
|
CHECK=$?
|
||||||
|
if [ $CHECK -ne 0 ]; then
|
||||||
|
echo "Command failed with error code $CHECK"
|
||||||
SUCCESS=0;
|
SUCCESS=0;
|
||||||
continue;
|
continue;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
npm run build
|
npm run build
|
||||||
if [ $? -ne 0 ]; then
|
CHECK=$?
|
||||||
|
if [ $CHECK -ne 0 ]; then
|
||||||
|
echo "Command failed with error code $CHECK"
|
||||||
SUCCESS=0;
|
SUCCESS=0;
|
||||||
continue;
|
continue;
|
||||||
fi;
|
fi;
|
||||||
|
@ -71,6 +78,12 @@ build_script:
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases \
|
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}\"}")
|
-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)
|
RELEASE_ID=$(echo $RELEASE_RESULT | jq -r .id)
|
||||||
echo "Adding ${CURR_VER}_build-sc.7z to release ${RELEASE_ID}"
|
echo "Adding ${CURR_VER}_build-sc.7z to release ${RELEASE_ID}"
|
||||||
curl \
|
curl \
|
||||||
|
@ -78,6 +91,12 @@ build_script:
|
||||||
-H "Authorization: token $deploytoken" \
|
-H "Authorization: token $deploytoken" \
|
||||||
-F "attachment=@${CURR_VER}_build-sc.7z" \
|
-F "attachment=@${CURR_VER}_build-sc.7z" \
|
||||||
https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases/$RELEASE_ID/assets
|
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"
|
echo "Deplying to production"
|
||||||
MAN_PORT=$(cat package.json | jq -r .port)
|
MAN_PORT=$(cat package.json | jq -r .port)
|
||||||
|
@ -89,6 +108,7 @@ build_script:
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $SUCCESS -eq 0 ]; then
|
if [ $SUCCESS -eq 0 ]; then
|
||||||
|
echo "One or more jobs failed to build"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
|
7
nfp_moe/build-package.json
Normal file
7
nfp_moe/build-package.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"asbundle": "^2.6.1",
|
||||||
|
"mithril": "^2.2.2",
|
||||||
|
"service-core": "^3.0.0-beta.17"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue