forked from koral--/android-gif-drawable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (30 loc) · 1.06 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
env:
global:
- NDK_VERSION=r12b
sudo: false
language:
- android
jdk:
- oraclejdk8
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-24.0.0
- echo y|android update sdk --all --no-ui --force --filter android-24
- echo y|android update sdk --all --no-ui --force --filter extra-android-m2repository
- 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 jacocoTestReport --info
after_failure:
- cat 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/