This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
#NO LONGER NEEDED..... | ||
#!/bin/sh | ||
|
||
### START - JXcore Test Server -------- | ||
### Testing environment prepares separate packages for each node. | ||
### Package builder calls this script with each node's IP address | ||
### Make sure multiple calls to this script file compiles the application file | ||
|
||
NORMAL_COLOR='\033[0m' | ||
RED_COLOR='\033[0;31m' | ||
GREEN_COLOR='\033[0;32m' | ||
GRAY_COLOR='\033[0;37m' | ||
|
||
LOG() { | ||
COLOR="$1" | ||
TEXT="$2" | ||
echo -e "${COLOR}$TEXT ${NORMAL_COLOR}" | ||
} | ||
|
||
|
||
ERROR_ABORT() { | ||
if [[ $? != 0 ]] | ||
then | ||
LOG $RED_COLOR "compilation aborted\n" | ||
exit -1 | ||
fi | ||
} | ||
### END - JXcore Test Server -------- | ||
|
||
cordova platform remove ios;ERROR_ABORT | ||
cordova platform remove android;ERROR_ABORT | ||
cordova plugin remove io.jxcore.node;ERROR_ABORT | ||
cordova plugin add io.jxcore.node/;ERROR_ABORT | ||
cordova platform add android;ERROR_ABORT | ||
cordova build android --release --device;ERROR_ABORT | ||
|
||
echo "copying Android build for CI" | ||
rm -rf android-release-unsigned.apk | ||
cp -R ../testdummy/platforms/android/build/outputs/apk/android-release-unsigned.apk android-release-unsigned.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters