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 191b59a commit 7e898fd
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@ container:
cpu: 8
memory: 24G

run_emulator_tests:
name: Run Android emulator tests
timeout_in: 30m
env:
JAVA_TOOL_OPTIONS: -Xmx6g
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dkotlin.compiler.execution.strategy=in-process
check_android_task:
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
create_avd_script:
echo no | avdmanager create avd --force
-n emulator
-k "system-images;android-30;google_apis;x86"
start_avd_background_script:
$ANDROID_HOME/emulator/emulator
-avd emulator
-no-audio
-no-boot-anim
-gpu swiftshader_indirect
-no-snapshot
-no-window
# assemble while emulator is starting
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
check_script: ./gradlew check connectedCheck

0 comments on commit 7e898fd

Please sign in to comment.