forked from sunfusheng/FirUpdater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (54 loc) · 2.12 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
62
language: android
jdk: oraclejdk8
sudo: true
android:
components:
- tools
- platform-tools
- tools
- build-tools-28.0.3
- android-28
- sys-img-armeabi-v7a-android-28
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
- add-on
- extra
licenses:
- android-sdk-preview-license-52d11cd2
- android-sdk-license-.+
- google-gdk-license-.+
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/"
- "$HOME/.android/build-cache"
before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"
- openssl aes-256-cbc -K $encrypted_0895791d098d_key -iv $encrypted_0895791d098d_iv
-in signings/keystore.jks.enc -out signings/keystore.jks -d
- gem install fir-cli
before_script:
- chmod +x gradlew
script:
- "./gradlew assembleRelease"
deploy:
provider: releases
api_key:
secure: OFuj/KAKzHLJ09FZkUKggwpKtXPXTpbrpGaSDE0osd/KM6zDy9kl7/NJRp/RgWMeiRQnWZY98lJatIbjTQ8mZBFJ0bpKuNaWf9+Kd61oPuNDaUoG02ogXi/zZLRRQszDMNNSZB4ND4Avv9DO6Tx30VCPN5lH9L2pR94GXf8CU47dicBBrVkZvVlXOWVsUke8nLdBN57F58bkXmRf2OHaHtIFPGLCr9AoSKzQxHVMeAcQB3Wf7ti/eP/0s1DLaHqjUcT145gIkftrKT38xllV/CH9p3S7lbx4SCsMiDbgTJLnGNf4Y/uulYFUuhePUHPfPQPGOs/u7jvDm3H91uKWRQSXBONeW2/sc96QHC0u0/S2IpPqTIayIaCCzELCWUgizV1PaNfIUret2rNz7crPMMjgO+V3qtpvv1NsIjmal6sTVhddMmuRUNkaxI2ZnX9otXPwXP7wMkTkL1L6bkmBwNDtgQzLK7BNKMhG6jTnq40A5XIVGN+0uS/Q7VwDhRSPeuerNpIBPF7fFTLV1LjVJvUZdb0tAo6BGjIcO9dJ4+X7d6ACB0cqQfIN7KGycWFSW1TFaBUj2voUhnzadcMsxvS27tquKQ1PHX7aqfUMwuBIunXmJs8xElv36CZUN2xcjs6DKiQ/cNC2R+vjioMWRlLXp2Glh5t23qPU9qTjLXo=
file: sample/release/FirUpdater.apk
skip_cleanup: true
on:
repo: sunfusheng/FirUpdater
tags: true
all_branches: true
after_deploy:
- "./gradlew clean build bintrayUpload -PbintrayUser=sfsheng0322 -PbintrayKey=$BINTRAY_TOKEN -PdryRun=false"
- fir publish sample/release/FirUpdater.apk -T $FIR_TOKEN -c "修复了一些问题,优化体验"
notifications:
email: