add before_script to .travis.yml to set up an avd

This commit is contained in:
pirogoeth 2015-03-10 09:22:20 -05:00
parent c3a354806c
commit b2429b4eee

View file

@ -19,3 +19,8 @@ android:
# Specify at least one system image, # Specify at least one system image,
# if you need to run emulator(s) during your tests # if you need to run emulator(s) during your tests
- sys-img-x86-android-21 - sys-img-x86-android-21
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 &
- android-wait-for-emulator
- adb shell input keyevent 82 &