appveyor: Some refactoring
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
028688f738
commit
fc79ec8780
1 changed files with 53 additions and 60 deletions
21
appveyor.yml
21
appveyor.yml
|
@ -28,12 +28,12 @@ build_script:
|
||||||
chmod -R 777 /appveyor/projects
|
chmod -R 777 /appveyor/projects
|
||||||
|
|
||||||
apk add curl jq
|
apk add curl jq
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Finished installling curl and jq"
|
|
||||||
else
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Finished installling curl and jq"
|
||||||
|
|
||||||
SUCCESS=1
|
SUCCESS=1
|
||||||
|
|
||||||
for f in *; do
|
for f in *; do
|
||||||
|
@ -49,22 +49,16 @@ build_script:
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo "Skipping $f since $CURR_NAME already exists";
|
echo "Skipping $f since $CURR_NAME already exists";
|
||||||
else
|
continue;
|
||||||
|
fi
|
||||||
|
|
||||||
rm base
|
rm base
|
||||||
cp -Rf ../base ./base
|
cp -Rf ../base ./base
|
||||||
|
|
||||||
mv package.json fuck-you-npm-package.json
|
mv package.json fuck-you-npm-package.json
|
||||||
mv build-package.json package.json
|
mv build-package.json package.json
|
||||||
|
|
||||||
npm install
|
npm install && npm run build
|
||||||
CHECK=$?
|
|
||||||
if [ $CHECK -ne 0 ]; then
|
|
||||||
echo "Command failed with error code $CHECK"
|
|
||||||
SUCCESS=0;
|
|
||||||
continue;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
npm run build
|
|
||||||
CHECK=$?
|
CHECK=$?
|
||||||
if [ $CHECK -ne 0 ]; then
|
if [ $CHECK -ne 0 ]; then
|
||||||
echo "Command failed with error code $CHECK"
|
echo "Command failed with error code $CHECK"
|
||||||
|
@ -106,7 +100,6 @@ build_script:
|
||||||
echo "Deplying to production"
|
echo "Deplying to production"
|
||||||
echo "curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME"
|
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
|
curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME
|
||||||
fi
|
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue