appveyor: Some refactoring
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2022-08-18 11:24:32 +00:00
parent 028688f738
commit fc79ec8780

View file

@ -28,12 +28,12 @@ build_script:
chmod -R 777 /appveyor/projects
apk add curl jq
if [ $? -eq 0 ]; then
echo "Finished installling curl and jq"
else
if [ $? -ne 0 ]; then
exit 1
fi
echo "Finished installling curl and jq"
SUCCESS=1
for f in *; do
@ -49,22 +49,16 @@ build_script:
if [ $? -eq 0 ] ; then
echo "Skipping $f since $CURR_NAME already exists";
else
continue;
fi
rm base
cp -Rf ../base ./base
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
npm install && npm run build
CHECK=$?
if [ $CHECK -ne 0 ]; then
echo "Command failed with error code $CHECK"
@ -106,7 +100,6 @@ build_script:
echo "Deplying to production"
echo "curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME"
curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME
fi
cd ..
done