diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6e3d981 --- /dev/null +++ b/.travis.yml @@ -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" \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index ec45517..de65d31 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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.+' }