OPS: feature-branch apk builds are now downloaded directly from CI (appcenter.ms)

This commit is contained in:
Overtorment 2021-06-29 20:19:54 +01:00
parent 7421b016d4
commit 7824765d3c
3 changed files with 1 additions and 25 deletions

View File

@ -90,5 +90,3 @@ script:
- npm i -g detox-cli
- npm run e2e:release-build
- npm run e2e:release-test || npm run e2e:release-test || npm run e2e:release-test
after_failure: ./tests/e2e/upload-artifacts.sh

View File

@ -18,13 +18,7 @@ if [ -f $FILENAME ]; then
PR=`node scripts/appcenter-post-build-get-pr-number.js`
echo PR: $PR
# uploading file
HASH=`date +%s`
FILENAME_UNIQ="$APPCENTER_OUTPUT_DIRECTORY/$BRANCH-$HASH.apk"
cp "$FILENAME" "$FILENAME_UNIQ"
curl "http://206.189.62.190:1488/$FILESTORAGE" -F "fileToUpload=@$FILENAME_UNIQ"
rm "$FILENAME_UNIQ"
DLOAD_APK="http://206.189.62.190:1488/$BRANCH-$HASH.apk"
DLOAD_APK="https://lambda-download-android-build.herokuapp.com/download/$BUILD_BUILDID"
curl -X POST --data "{\"body\":\"♫ This was a triumph. I'm making a note here: HUGE SUCCESS ♫\n\n [android in browser] $APPURL\n\n[download apk]($DLOAD_APK) \"}" -u "$GITHUB" "https://api.github.com/repos/BlueWallet/BlueWallet/issues/$PR/comments"
fi

View File

@ -1,16 +0,0 @@
#!/usr/bin/env bash
echo uploading artifacts...
cp ./android/app/build/outputs/apk/release/app-release.apk ./artifacts/
cp ./android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk ./artifacts/
cp ~/.android/avd/Pixel_API_29_AOSP.avd/config.ini ./artifacts/
tar -cvzf artifacts.tar.gz artifacts
FILENAME="artifacts.tar.gz"
HASH=`date +%s`
FILENAME_UNIQ="$HASH.tar.gz"
cp "$FILENAME" "$FILENAME_UNIQ"
curl "http://filestorage.bluewallet.io:1488/upload.php" -F "fileToUpload=@$FILENAME_UNIQ"
rm "$FILENAME_UNIQ"
DLOAD="http://filestorage.bluewallet.io:1488/$HASH.tar.gz"
echo artifacts download link:
echo $DLOAD