-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (39 loc) · 1.28 KB
/
.travis.yml
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
32
33
34
35
36
37
38
39
language: android
jdk: oraclejdk8
env:
global:
- ANDROID_TARGET=android-26
- ADDON_GOOGLE_API=addon-google_apis-google-26
- ANDROID_ABI=google_apis/armeabi-v7a
- TERM=dumb
android:
components:
- tools
- platform-tools
- build-tools-26.0.1
- $ANDROID_TARGET
- $ADDON_GOOGLE_API
- extra-android-m2repository
- sys-img-${ANDROID_ABI}-${ANDROID_GOOGLE_API}
install:
- chmod +x gradlew
# - 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 setprop dalvik.vm.dexopt-flags v=n,o=v
before_script:
- export NDK_VERSION=r10e
- curl -L http://dl.google.com/android/ndk/android-ndk-${NDK_VERSION}-linux-x86_64.bin -O
- chmod u+x android-ndk-${NDK_VERSION}-linux-x86_64.bin
- ./android-ndk-${NDK_VERSION}-linux-x86_64.bin > /dev/null
- rm android-ndk-${NDK_VERSION}-linux-x86_64.bin
- export ANDROID_NDK_HOME=`pwd`/android-ndk-${NDK_VERSION}
- export PATH=${ANDROID_NDK_HOME}:${PATH}
- ./gradlew clean || true
script:
- ./gradlew assembleDebug testDebug jacocoTestReport
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure:
- zip -r reports.zip app/build
- curl -T reports.zip https://transfer.sh/reports.zip