diff options
author | Joey Grover <joeygrover@gmail.com> | 2017-03-28 16:25:53 -0400 |
---|---|---|
committer | Joey Grover <joeygrover@gmail.com> | 2017-03-28 16:25:53 -0400 |
commit | feecf10a136723e3460953e1f0441b844a228c32 (patch) | |
tree | 4223e25cb2ab643f530158113deddf7e33d72a3f | |
parent | 913bec1032a59ba921e6a0bb702a6dbae82af01f (diff) | |
download | sdl_android-feecf10a136723e3460953e1f0441b844a228c32.tar.gz |
Updates to travis.yml for running emulator for tests
-rw-r--r-- | .travis.yml | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index c30c6186b..c839865af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: android +sudo: false android: components: # use the latest revision of Android SDK Tools @@ -9,4 +10,24 @@ android: - build-tools-25.0.2 # The SDK version used to compile your project - - android-19
\ No newline at end of file + - android-19 + # Specify at least one system image, + # if you need to run emulator(s) during your tests + - sys-img-armeabi-v7a-android-21 + # - sys-img-x86-android-17 + +env: + global: + # install timeout in minutes (2 minutes by default) + - ADB_INSTALL_TIMEOUT=4 + +# 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 & + - android-wait-for-emulator + - adb shell input keyevent 82 & + +script: + - android list target + - ./gradlew connectedAndroidTest |