Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
trigger android buid
Browse files Browse the repository at this point in the history
  • Loading branch information
jareksl committed Jul 17, 2017
1 parent 18a8dce commit 47593fb
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
39 changes: 38 additions & 1 deletion build.sh
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
4 changes: 4 additions & 0 deletions build_droid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ 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
2 changes: 0 additions & 2 deletions build_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,5 @@ ERROR_ABORT() {

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 ios;ERROR_ABORT
cordova build ios --device;ERROR_ABORT

0 comments on commit 47593fb

Please sign in to comment.