forked from Pygmalion69/Gauge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (39 loc) · 2.45 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
android:
components:
- tools
- tools
- platform-tools
- build-tools-26.0.2
- android-22
- android-26
- sys-img-armeabi-v7a-android-22
jdk:
- oraclejdk8
before_install:
- openssl aes-256-cbc -K $encrypted_3c69cb11092a_key -iv $encrypted_3c69cb11092a_iv -in .keystore.enc -out .keystore -d
- chmod +x gradlew
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
before_deploy:
- 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
# Verification
- jarsigner -verify app-release-unsigned.apk
- "${ANDROID_HOME}/build-tools/26.0.2/zipalign -v 4 app-release-unsigned.apk Gauge.apk"
deploy:
provider: releases
api_key: "${api_key}"
file: Gauge.apk
skip_cleanup: true
on:
all_branches: true
tags: true
env:
global:
- secure: sh2rfb6EPlh+XYDEUyVqpmH3ZLKTnC9EoILvn62Qmpd8TGpsWf9vEEvRexmU9NKOnUvX5lopUWemeqZUqlJk/Q4/cE7rz5wT5M2UXsraIqKqRt9AsQtqz2gbJfywOv+88482qRydV+HjzV4ux/yWRGEXc8gUvc6l18P1tywiPGijRphd+xjTgi74fC8rajn5zxwX10tlICGanp7zrOkcuLft03LBFSFwrutRnwDYPQQISPxKXClNnPjCao0eEymH98bYTXeddcWathadEqgthYl765MBKt40QYxg6yivRS7DFJ4vCzKpo6FZmOkPgTt4jWHavOw74mTZjmF7M5WQ9E8tj803V98GfSc73l7IJjg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