-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (31 loc) · 1016 Bytes
/
.travis.yml
File metadata and controls
31 lines (31 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: android
jdk: oraclejdk8
env:
global:
- ANDROID_TARGET=android-19
- ANDROID_ABI=armeabi-v7a
android:
components:
- build-tools-19.0.3
- $ANDROID_TARGET
- sys-img-armeabi-v7a-$ANDROID_TARGET
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
before_script:
- mkdir $ANDROID_HOME/licenses
- echo d56f5187479451eabf01fb78af6dfcb131a6481e > $ANDROID_HOME/licenses/android-sdk-license
script:
- android list sdk --extended --no-ui --all
- echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-19,sys-img-x86_64-android-19
- android list targets
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- ./gradlew build
- ./gradlew assembleAndroidTest
- ./gradlew connectedCheck
- ./gradlew jacocoTestReport
after_success:
- bash <(curl -s https://codecov.io/bash)