forked from TwrpBuilder/TwrpBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (34 loc) · 805 Bytes
/
.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
sudo: required
language: android
android:
components:
- tools
- platform-tools
- build-tools-28.0.2
- android-27
- add-on
- extra
licenses:
- 'android-sdk-license-.+'
jdk:
- oraclejdk8
script:
- chmod +x build.sh && ./build.sh
- "./gradlew build"
- "mv ./app/build/outputs/apk/release/app-release.apk ./TwrpBuilder-$(git describe --tags).apk"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
deploy:
skip_cleanup: true
provider: releases
api_key: "$GIT_OAUTH_TOKEN_TB"
file: "./TwrpBuilder-$(git describe --tags).apk"
on:
tags: true
before_install:
- yes | sdkmanager "platforms;android-27"