-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
45 lines (45 loc) · 2.84 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
language: android
dist: trusty
android:
components:
- tools
- tools
- platform-tools
- build-tools-30.0.2
- extra-android-m2repository
jdk:
- oraclejdk11
before_install:
- touch $HOME/.android/repositories.cfg
- wget "https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip" -O commandlinetools.zip
- unzip commandlinetools.zip -d $ANDROID_HOME/
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${TARGET_VERSION}" --sdk_root=$ANDROID_HOME
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" --sdk_root=$ANDROID_HOME
- openssl aes-256-cbc -K $encrypted_185e3830080a_key -iv $encrypted_185e3830080a_iv -in keystore.enc -out ./keystore -d
- chmod +x gradlew
install:
- true
script:
- ./gradlew build
before_deploy:
- touch $HOME/.android/repositories.cfg
- cp $TRAVIS_BUILD_DIR/keystore $HOME
- cd app/build/outputs/apk/release/
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/keystore -storepass $storepass -keypass $keypass app-release-unsigned.apk prisoner
- jarsigner -verify app-release-unsigned.apk
- "${ANDROID_HOME}/build-tools/30.0.2/zipalign -v 4 app-release-unsigned.apk OpenTopoMapViewer.apk"
deploy:
provider: releases
api_key: "${api_key}"
file: OpenTopoMapViewer.apk
skip_cleanup: true
on:
all_branches: true
tags: true
env:
global:
- TARGET_VERSION=30
- ANDROID_BUILD_TOOLS_VERSION=30.0.2
- ANDROID_HOME=~/android-sdk
- secure: O7mugbQQs8MLONAv/pH5Gm7hIocK6f+S5p7FR15jXHpZFJ+C2jzbE2MbCOz/WPkehFfwI9ghRx8FcyMmkgOzmX5LF2cNi9+5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