Skip to content

Commit

Permalink
Fixed an issue that didn't allow premium version of Olympus to be upl…
Browse files Browse the repository at this point in the history
…oaded to TF
  • Loading branch information
Antonis committed Jun 19, 2017
1 parent 1fba758 commit a1545d5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/upload-olympus-to-testfairy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ then
exit 1
fi

echo "-- Building Olympus & uploading to TF -this might take some time..."
if [ -z $TESTFAIRY_APP_TOKEN ]
then
echo "-- Error: TESTFAIRY_APP_TOKEN environment variable missing"
Expand All @@ -33,14 +32,14 @@ fi
# Skip the signArchives task until we properly setup Travis for signing + upload of archives to Sonatype. Otherwise the build breaks
cd Examples/restcomm-olympus || exit 1

if [ -z "$ICE_USERNAME" ] || [ -z "$PICE_PASSWORD" ] || [ -z "$PICE_DOMAIN" ]
if [ -z "$ICE_USERNAME" ] || [ -z "$ICE_PASSWORD" ] || [ -z "$ICE_DOMAIN" ]
then
echo "-- Error: ICE_USERNAME, ICE_PASSWORD and ICE_DOMAIN need to be set for premium Olympus to be built"
exit 1
fi

# Upload premium version to TF
echo "-- Uploading premium version to Test Fairy"
echo "-- Building premium version of Olympus & uploading to Test Fairy -this might take some time..."
./gradlew --quiet -x signArchives -x uploadArchives -x androidJavadocs -PICE_USERNAME=$ICE_USERNAME -PICE_PASSWORD=$ICE_PASSWORD -PICE_DOMAIN=$ICE_DOMAIN -PAPPLICATION_ID="org.restcomm.android.olympus.premium" -PtestfairyChangelog="Version: $ORG_GRADLE_PROJECT_VERSION_NAME+$ORG_GRADLE_PROJECT_VERSION_CODE, GitHub commit: $COMMIT_SHA1, premium build" testfairyDebug || exit 1
if [ $? -ne 0 ]
then
Expand All @@ -49,7 +48,7 @@ then
fi

# Upload community version to TF, so that it gets a separate download point from premium (no need to specify APPLICATION_ID as default is for community)
echo "-- Uploading community version to Test Fairy"
echo "-- Building community version of Olympus & uploading to Test Fairy -this might take some time..."
./gradlew --quiet -x signArchives -x uploadArchives -x androidJavadocs -PtestfairyChangelog="Version: $ORG_GRADLE_PROJECT_VERSION_NAME+$ORG_GRADLE_PROJECT_VERSION_CODE, GitHub commit: $COMMIT_SHA1, community build" testfairyDebug || exit 1
if [ $? -ne 0 ]
then
Expand Down

0 comments on commit a1545d5

Please sign in to comment.