nbusy / nbusy-android

NBusy Android app.
http://nbusy.com
Apache License 2.0
1 stars 0 forks source link

Switch to Docker builds as Android SDK now builds on Docker #80

Open soygul opened 8 years ago

soygul commented 8 years ago

We need to backport below features from Travis.yml:

Travis repo is open source so we can reuse the scripts that they use in Docker.

soygul commented 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

soygul commented 8 years ago

We can also run server Docker image and get the integration tests running.

soygul commented 8 years ago

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.

Dockerdroid.zip