-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.61 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
language: android
jdk:
- oraclejdk8
git:
depth: 3 #将git depth设置相对小的值,加快构建速度
sudo: required
dist: trusty
env:
global:
- ANDROID_API=28
- ANDROID_BUILD_TOOLS=28.0.3
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- extra
before_install:
- chmod +x gradlew
- rvm install 2.6.2
- rvm use 2.6.2 --default
- gem install fir-cli
- fir help
script:
- "./gradlew assembleRelease"
deploy:
provider: releases
api_key:
secure: dajgZIZYFVQP3hlhqFxRpcG0sbAuKOzDJBOzb8YCdmOL628I/swt02atLwkF9htfHH7etTm+I+xCnktjx3jWrbp2+x8tZIxJnAZugpqtDF6ybJsQ73n8Bp9wXs9Acg7/iGiDHKLGB6giZHcnXBGkG71jd2gf0pg3nPEWeTnGuONQnWW0VcRugCndDivsvSK7soM1Nqg8xNMVB+7C5T5MisewxqTgd+7ZFS/71EbvJS6Lx8bN06j8DRNAKV5qnI5wwkuFMH2d2lBDlsxFa+gtWfGq5N0V7HvGD3ajvTuGvsORApmGJyVSI5mfKla4gcW0/UMYZgjr1/M6F4aSj0OuUkdHpNRVcLsJSHRa5A1/0390Z1fefWsxgIhP4i9RvGYluW2ktIiaRo1qbZ7pyYvqf1RFYLr25DfzxyG9d6BrLCYlPhW064SXwPMSOTl1XZA3lKm3VHtXTChP9acTXPOPO4nI7r3IA8hzJMRANvcGH5nhcQAXlCM8fINxPSEWbHVziCZv+2U+bt63LJs4MegWYlNPVIxU+n9yxsYYB0UJWwDR0FqhGBkIvLiz0Rbg+zD2q98F0FLX8kLK2Uk8F69f+k8hRH0+0/UmS221vNe2/HnbjymjEsA9Cv+6nqtwd3UpxtPqFeR5yrrLRchadVp4F4h6R3WBBGFHYDfSLIU0c2s=
file: app/build/outputs/apk/release/app-universal-release.apk
skip_cleanup: true
on:
repo: xiangang/Android-MVVM-JetPack-Practice
tags: true
after_script:
- fir login dc0f4aacac2b8f748453b4dec903f9ac
- fir me
- fir publish app/build/outputs/apk/release/app-universal-release.apk -T $FIR_TOKEN -b nongxiangang -c "`git cat-file tag $TRAVIS_TAG`"
notifications:
email:
- xiangang12202@hotmail.com
- 342005702@qq.com