-
Notifications
You must be signed in to change notification settings - Fork 75
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
1 parent
d0a9e8f
commit 593651b
Showing
4 changed files
with
30 additions
and
26 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,28 +1,17 @@ | ||
instrumented_task_test: | ||
name: Run Android emulator tests | ||
timeout_in: 30m | ||
only_if: $CIRRUS_BRANCH == "main" || $CIRRUS_PR != "" | ||
skip: "!changesInclude('.cirrus.yml', '*.gradle', '*.gradle.kts', '**/*.gradle', '**/*.gradle.kts', '*.properties', '**/*.properties', '**/*.kt', '**/*.xml')" | ||
env: | ||
JAVA_TOOL_OPTIONS: -Xmx6g | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dkotlin.compiler.execution.strategy=in-process | ||
container: | ||
image: reactivecircus/android-emulator-33:latest | ||
kvm: true | ||
cpu: 8 | ||
memory: 24G | ||
container: | ||
image: ghcr.io/cirruslabs/android-sdk:33 | ||
kvm: true | ||
cpu: 8 | ||
memory: 24G | ||
|
||
create_device_script: | ||
./gradlew :app:provisionEmulator | ||
start_emulator_background_script: | ||
$ANDROID_HOME/emulator/emulator -avd "seedvault" -no-window -gpu swiftshader_indirect -writable-system -no-snapshot -noaudio -no-boot-anim -camera-back none | ||
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_emulator_script: | ||
wait_for_avd_script: | ||
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 3; done; input keyevent 82' | ||
disable_animations_script: | | ||
adb shell settings put global window_animation_scale 0.0 | ||
adb shell settings put global transition_animation_scale 0.0 | ||
adb shell settings put global animator_duration_scale 0.0 | ||
run_instrumented_tests_script: | ||
./gradlew connectedAndroidTest | ||
install_app_script: | ||
wget --output-document etar.apk https://f-droid.org/repo/ws.xsoh.etar_35.apk | ||
adb install etar.apk | ||
check_script: ./gradlew connectedAndroidTest |
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
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