Open soygul opened 8 years ago
# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- curl http://is.gd/android_wait_for_emulator > android-wait-for-emulator
- chmod u+x android-wait-for-emulator
- ./android-wait-for-emulator
- adb shell input keyevent 82 &
which is found in: https://github.com/halvards/android-travis-spike/blob/master/initialize-android.sh
We can also run server Docker image and get the integration tests running.
Below is a complete working sample with emulator in Docker. We can open-source this on Titan repo or contribute to an already open source one also.
We need to backport below features from Travis.yml:
nbusy.keystore
in the repo and read decryption key and store key from env vars.Travis repo is open source so we can reuse the scripts that they use in Docker.