Created
June 18, 2023 14:26
-
-
Save tugceaktepe/a9b20b7485be6a4a0a6431c6ff347487 to your computer and use it in GitHub Desktop.
run emulator with docker-image
This file contains hidden or 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
image: registry.xxx.yy-qemu-enabled-image | |
stages: | |
- test | |
instrumentedTests: | |
stage: test | |
script: | |
# create the emulator | |
- echo no | avdmanager create avd -n test -k "system-images;android-${EMULATOR_VERSION};default;x86_64" | |
# for some reasons the emulator doesnt start automatically, so we have to start it | |
- adb start-server | |
# run in the background without window and audio | |
- chmod +x ./gradlew | |
- emulator -avd test -no-window -no-audio & | |
- ./android-wait-for-emulator | |
- adb shell input keyevent 82 | |
- adb devices | |
- ./gradlew connectedDebugAndroidTest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment