Skip to content

Commit

Permalink
Fix Cirrus configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stevesoltys committed Sep 12, 2023
1 parent 593651b commit 097574d
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,38 @@ container:
memory: 24G

check_android_task:
provision_emulator_script:
ANDROID_SDK_HOME=/opt/android-sdk-linux ./app/development/scripts/provision_emulator.sh seedvault "system-images;android-33;google_apis;x86_64"
assemble_instrumented_tests_script:
./gradlew assembleDebugAndroidTest
wait_for_avd_script:
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 3; done; input keyevent 82'
create_avd_script:
sdkmanager --install "system-images;android-33;google_apis;x86_64"
echo no | avdmanager create avd -n seedvault -k "system-images;android-33;google_apis;x86_64"
start_avd_script:
$ANDROID_HOME/emulator/emulator
-avd seedvault
-no-audio
-no-boot-anim
-gpu swiftshader_indirect
-no-snapshot
-no-window
assemble_release_script:
./gradlew assembleRelease
provision_script:
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
adb root
sleep 5
adb remount
adb reboot
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
adb root
sleep 5
adb remount
adb shell mkdir -p /system/priv-app/Seedvault
adb push app/build/outputs/apk/release/app-release.apk /system/priv-app/Seedvault/Seedvault.apk
adb push permissions_com.stevesoltys.seedvault.xml /system/etc/permissions/privapp-permissions-seedvault.xml
adb push allowlist_com.stevesoltys.seedvault.xml /system/etc/sysconfig/allowlist-seedvault.xml
adb shell bmgr enable true
adb shell bmgr transport com.stevesoltys.seedvault.transport.ConfigurableBackupTransport
adb reboot
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'

install_app_script:
wget --output-document etar.apk https://f-droid.org/repo/ws.xsoh.etar_35.apk
adb install etar.apk
Expand Down

0 comments on commit 097574d

Please sign in to comment.