Test license selection in Settings and run emulator on Travis

This commit is contained in:
Yusuke Matsubara 2017-04-16 17:54:06 +09:00
parent db81e9c6bb
commit 7a7e1e7fbb
4 changed files with 144 additions and 2 deletions

View file

@ -1,4 +1,12 @@
language: android
addons:
apt:
packages:
- w3m
env:
global:
- ANDROID_TARGET=android-22
- ANDROID_ABI=armeabi-v7a
android:
components:
- platform-tools
@ -6,8 +14,20 @@ android:
- build-tools-25.0.1
- extra-google-m2repository
- extra-android-m2repository
- extra-google-google_play_services
- extra-android-support
- ${ANDROID_TARGET}
- android-25
- sys-img-x86-android-18
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
before_script:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- ./gradlew test connectedAndroidTest -stacktrace
after_failure:
- w3m -dump ${TRAVIS_BUILD_DIR}/app/build/reports/androidTests/connected/*Test.html
jdk:
# - openjdk8 # not yet available
- oraclejdk8