-
Notifications
You must be signed in to change notification settings - Fork 236
/
.travis.yml
61 lines (49 loc) · 2.5 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
language: android
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-23.0.3
# Additional components
- extra-android-m2repository
# The SDK version used to compile your project
- android-24
# Specify at least one system image,
# if you need to run emulator(s) during your tests
# - sys-img-x86-android-23
script: ./gradlew build
jdk:
- oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: F/3WjtqaFxTdstyNYkPBclDebxJwgws+yiW1cEJTxZiINKfWN4Tzn83OgoBio0ZbsrsfG6H/htIYmUmQIxiIcfswn1Jh1fGHikGvh+FNAjbOkot7ki006Bn1jXzHBSahdReiydgUy6SH/UDZd8gNjRDDw/D148aHBuHnffZV3rhatPv5Fj2JsVELCR5zDVrNk5M1GPQH0yVocmPe0BgQuiOOXbjx2ESYxuO5a/zxRUA7cf7hyjtmKYWaJYgi5m7c1SC2f8iqUxN4IUQsE43/4ALKfBI6GdKOPQZyujeinE8HyOPj60GO5EtFYpVjA8HDj/lmr8B4Nva2pRHLV47P1NAw5DlSoNgoVKmGlQ8FbenMmerpln49Mg80pVwK7yWBsW38iDwviOGAtnVEv9z2ylNN/07tjyB7Rm20jfi7fE6xZOCtXg8mS+NZBU3O/w7Hizne+a+XGReSA8QHouFY6zPSojKUvw4Q7zC17mqOI6B9YO4wxKEenFJUhFEEtEL3QMWOFBitngeGX7b7JR+Rne6bPKKySHTRzID0J9jc+8FT1nJoxq+aFuVdAKTetVAVh90XvRi1VkLvVAlrGgXVFzmb02E2KFfwFsx19km45bX/8LcbqcsmZK1oLeP1She+bSwzmUsY2sonSNj6U629gD8CzmMs4Rn5CJw9H4S0odw=
file: app/build/outputs/apk/h-viewer_$TRAVIS_TAG.apk
on:
repo: PureDark/H-Viewer
tags: true
before_deploy:
- echo $ANDROID_KEYSTORE | base64 -d > android.keystore
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore android.keystore -storepass $ANDROID_KEYPASS app/build/outputs/apk/app-release-unsigned.apk $ANDROID_ALIAS
- $ANDROID_HOME/build-tools/23.0.3/zipalign -v 4 app/build/outputs/apk/app-release-unsigned.apk app/build/outputs/apk/app-release.apk
- rm app/build/outputs/apk/app-release-unsigned.apk
- rm android.keystore
- cp app/build/outputs/apk/app-release.apk app/build/outputs/apk/h-viewer_$TRAVIS_TAG.apk
- gem install fir-cli
before_install:
- mkdir -p $ANDROID_HOME/licenses
# The hash may change in the future
- echo '8933bad161af4178b1185d1a37fbf41ea5269c55' > $ANDROID_HOME/licenses/android-sdk-license
- echo '84831b9409646a918e30573bab4c9c91346d8abd' > $ANDROID_HOME/licenses/android-sdk-preview-license
after_deploy:
- fir p app/build/outputs/apk/app-release.apk -T $FIR_TOKEN -c "`git cat-file tag $TRAVIS_TAG`"