-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.11 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
language: android
dist: trusty
addons:
apt:
packages:
- pandoc
- realpath
- libucl-dev
- libucl1
- advancecomp
- libarchive-zip-perl
- fastjar
- faketime
android:
components:
- tools
- platform-tools
- tools
- build-tools-25.0.2
- android-25
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
script: ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle/ TZ=UTC LC_ALL=C ./gradlew assembleDebug --stacktrace
before_install:
- echo -e "ndk.dir=$ANDROID_HOME/ndk-bundle/\nsdk.dir=$ANDROID_HOME" > local.properties
- yes | $ANDROID_HOME/tools/bin/sdkmanager ndk-bundle
- yes | $ANDROID_HOME/tools/bin/sdkmanager "cmake;3.6.4111459"
jdk:
- oraclejdk8
after_failure:
- pandoc lib/build/outputs/lint-results*.html -t plain
before_deploy:
- ./repack.sh
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
deploy:
overwrite: true
provider: releases
api_key: "$GITHUB_API_KEY"
file:
- "release.aar"
- "release-compressed.aar"
skip_cleanup: true
on:
tags: true
tag_name: "$TRAVIS_TAG"