mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Test license selection in Settings and run emulator on Travis
This commit is contained in:
parent
db81e9c6bb
commit
7a7e1e7fbb
4 changed files with 144 additions and 2 deletions
22
.travis.yml
22
.travis.yml
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue