Add initial Travis build

This commit is contained in:
DjBushido 2014-07-05 11:12:37 -04:00
parent 8b5e6ede51
commit b0a8a37b67
2 changed files with 24 additions and 0 deletions

12
.travis.yml Normal file
View File

@ -0,0 +1,12 @@
language: android
env:
matrix:
- ANDROID_SDKS=android-19,sysimg-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
before_install:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
before_script:
- ./wait_for_emulator
- adb shell input keyevent 82 &
script: "./gradlew connectedAndroidTestTestConfigDebug"

View File

@ -1,3 +1,13 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
}
}
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
android {
@ -38,7 +48,9 @@ android {
}
dependencies {
compile 'com.squareup.dagger:dagger:1.2.1'
provided 'com.squareup.dagger:dagger-compiler:1.2.1'
compile 'com.android.support:appcompat-v7:20.+'
}