summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2017-03-28 16:25:53 -0400
committerJoey Grover <joeygrover@gmail.com>2017-03-28 16:25:53 -0400
commitfeecf10a136723e3460953e1f0441b844a228c32 (patch)
tree4223e25cb2ab643f530158113deddf7e33d72a3f
parent913bec1032a59ba921e6a0bb702a6dbae82af01f (diff)
downloadsdl_android-feecf10a136723e3460953e1f0441b844a228c32.tar.gz
Updates to travis.yml for running emulator for tests
-rw-r--r--.travis.yml23
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