forked from koral--/android-gif-drawable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (51 loc) · 1.87 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
env:
global:
- NDK_VERSION=r13b
- MALLOC_ARENA_MAX=2
sudo: true
language:
- android
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
android:
components:
- tools # to get the new `repository-11.xml`
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools
- build-tools-25.0.0
- android-25
- android-24
- extra-android-m2repository
- sys-img-armeabi-v7a-android-24
jdk:
- oraclejdk8
before_script:
- echo n | android create avd --force --name test --target android-24 --abi armeabi-v7a --tag default
- emulator -avd test -no-window -gpu off &
- android-wait-for-emulator
- adb shell wm dismiss-keyguard
before_install:
- echo y|android update sdk --all --no-ui --force --filter tools
- echo y|android update sdk --all --no-ui --force --filter platform-tools
- echo y|android update sdk --all --no-ui --force --filter build-tools-25.0.0
- echo y|android update sdk --all --no-ui --force --filter android-25
- echo y|android update sdk --all --no-ui --force --filter extra-android-m2repository
- echo y|android update sdk --all --no-ui --force --filter sys-img-x86-google_apis-25
- wget http://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux-x86_64.zip
- unzip android-ndk-$NDK_VERSION-linux-x86_64.zip |grep -v inflating
- export ANDROID_NDK_HOME=`pwd`/android-ndk-$NDK_VERSION
- export PATH=${PATH}:${ANDROID_NDK_HOME}
script:
- ./gradlew build connectedCheck :android-gif-drawable:jacocoTestReport --info
after_failure:
- cat android-gif-drawable/build/outputs/lint-results-debug.xml
after_success:
- bash <(curl -s https://codecov.io/bash)
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/