-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I am using this docker to run the unit tests in an android project. It is worked very well. But I need support to run the expresso tests with that docker.
Currently, I have three steps for doing it:
- Install KVM (I am not sure about this steps)
- apt-get --quiet install --yes libx11-dev libpulse0 libgl1 libnss3 libxcomposite-dev libxcursor1 libasound2
- apt-get --quiet install --yes qemu-kvm libvirt-daemon-system libvirt-dev libvirt-clients virtinst bridge-utils
- Get the
android-wait-for-emulator
- wget --quiet --output-document=android-wait-for-emulator https://raw.githubusercontent.com/travis-ci/travis-cookbooks/0f497eb71291b52a703143c5cd63a217c8766dc9/community-cookbooks/android-sdk/files/default/android-wait-for-emulator
- chmod +x android-wait-for-emulator
- Create the emulator and wait for it to be ready to run the tests.
- echo no | android-sdk-linux/tools/bin/avdmanager create avd -n test -k "system-images;android-${ANDROID_EMULATOR_VERSION};google_apis;x86"
- android-sdk-linux/emulator/emulator -avd test -accel auto -gpu auto -no-window -no-audio &
- ./android-wait-for-emulator
- adb shell input keyevent 82
Metadata
Metadata
Assignees
Labels
No labels