Skip to content

Commit 9052e70

Browse files
committed
添加Travis自动化部署
1 parent b985e5c commit 9052e70

File tree

4 files changed

+67
-0
lines changed

4 files changed

+67
-0
lines changed

.travis.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
language: android
2+
jdk: oraclejdk8
3+
sudo: true
4+
5+
android:
6+
components:
7+
- tools
8+
- platform-tools
9+
- tools
10+
- build-tools-27.1.1
11+
- android-27
12+
- sys-img-armeabi-v7a-android-27
13+
- extra-android-support
14+
- extra-android-m2repository
15+
- extra-google-m2repository
16+
- add-on
17+
- extra
18+
licenses:
19+
- android-sdk-preview-license-52d11cd2
20+
- android-sdk-license-.+
21+
- google-gdk-license-.+
22+
23+
before_cache:
24+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
25+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
26+
27+
cache:
28+
directories:
29+
- "$HOME/.gradle/caches/"
30+
- "$HOME/.gradle/wrapper/"
31+
- "$HOME/.android/build-cache"
32+
33+
before_install:
34+
- mkdir "$ANDROID_HOME/licenses" || true
35+
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"
36+
- openssl aes-256-cbc -K $encrypted_0f82fc3ea788_key -iv $encrypted_0f82fc3ea788_iv
37+
-in signings/keystore.jks.enc -out signings/keystore.jks -d
38+
- gem install fir-cli
39+
40+
before_script:
41+
- chmod +x gradlew
42+
43+
script:
44+
- "./gradlew assembleRelease"
45+
46+
deploy:
47+
provider: releases
48+
api_key:
49+
secure: BwzVE9rrCLQ1CKalfO66vdBVrpajt1AZVzG8n2qwRSRQxIKabnQht2NCEVWA9jBCGan6ahKG3ZV4Ky5Xeue49FZHb69zuvi7pdhL2AVGDv/T48TXks39FviJD40gSvtOC9H8ju5LokRBoTs74bdhg/weu0fbwjarioS+gsx/AdLYoji5xpe+FaCuwZEKRQ2Cer000XSntmm4d91oW1gJ9DiBLEyb0eEA4t0Trd+zCvC38pv5+sEEag1FIOnOnwc5dixozL0FSSSSPC3mDMxLJL0cgrDmSHzhRL6/DOb/taRGpAyyhOlrIn1H6fPcot8oQFPMv9LUzltYrdYjaKEgg5fGP/+4GVA50UqmQ7UEdtN6i1+UqfnRtkAugJRozy6M0+c8fgg9l5eZfH0jXCpNL8wYsTC0nmDnsG5kLayIM23nQRQOeYEoIiPZxnwvwCwyVZ0GbTEQIql/GHHBpcW9fjBDASsnK3CGtVVf/EHzU/5f0Y71GSPJ5DUHl79ZBNmw+fYkjuoAIt27vP+sf3WPAkGOUGT7PvwpAEe16Xh8cYr37R/Ryuw57Rk3vN/Js0pCqlDymIjMeOIeU57RK8KXKsqrYQtleC8Erjx89eeq1oqq/zZ2g3gFl31c9ajiCjjSpkMR+df518tqgfa40/SfqHX+oz6ihAsCs2PGwqPG8ig=
50+
file: Sample/outputs/GlideImageView.apk
51+
skip_cleanup: true
52+
on:
53+
repo: sfsheng0322/GlideImageView
54+
tags: true
55+
all_branches: true
56+
57+
after_deploy:
58+
- "./gradlew clean build bintrayUpload -PbintrayUser=sfsheng0322 -PbintrayKey=$BINTRAY_TOKEN -PdryRun=false"
59+
- fir p Sample/outputs/GlideImageView.apk -T $FIR_TOKEN -c "基于Glide V4.7.1封装的图片加载库,可以监听加载图片时的进度"
60+
61+
notifications:
62+
email:
63+

GlideImageView/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ android {
3030
dependencies {
3131
api "com.android.support:support-v4:$rootProject.supportLibraryVersion"
3232
api 'com.github.bumptech.glide:glide:4.7.1'
33+
api 'com.github.bumptech.glide:annotations:4.7.1'
3334
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
3435
api "com.github.bumptech.glide:okhttp3-integration:4.7.1"
3536
}

GlideImageView/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@
2323
# If you keep the line number information, uncomment this to
2424
# hide the original source file name.
2525
#-renamesourcefileattribute SourceFile
26+
27+
-keep public class extends com.bumptech.glide.module.AppGlideModule
28+
-keep class com.bumptech.glide.GeneratedAppGlideModuleImpl

signings/keystore.jks.enc

2.19 KB
Binary file not shown.

0 commit comments

Comments
 (0)