forked from MiPushFramework/MiPushFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.74 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
jdk: oraclejdk8
language: android
android:
components:
- build-tools-27.0.1
- android-27
- extra-android-m2repository
script:
- "./gradlew :app:assembleRelease"
- "./gradlew :push:assembleRelease"
before_install:
- yes | sdkmanager "platforms;android-27"
- openssl aes-256-cbc -K $encrypted_66a7d5f7594e_key -iv $encrypted_66a7d5f7594e_iv
-in .yuuta.jks.enc -out .yuuta.jks -d
- chmod +x gradlew
before_deploy:
- export VERSION=$(git rev-parse --short HEAD)"-SNAPSHOT"
- mv "app/build/outputs/apk/release/app-release.apk" "app/build/outputs/apk/release/manager.apk"
- mv "push/build/outputs/apk/release/push-release.apk" "push/build/outputs/apk/release/xmsf_service.apk"
- git tag $VERSION
deploy:
name: ${VERSION}
body: Snapshot version automatically generated by Travis CI, there are some problems, please be cautious experience.
prerelease: true
provider: releases
skip_cleanup: true
api_key:
secure: G+LeoslAG/JLv5PsxNoH5jYr8gXhD8SzHAMhnXGkPy6CNPq3CHhyYTh5AKIbQyI9596KeNZSCBcUFRw2HvDC5BBnB7uKNmxGlPKLNRH+AEuF1ZkNlOc7Q2lYhuArbMeiZw2Tz3RL5/5HJYZ2LPwaDRxeB7HipqSfDXN+6W65qW6TTGO5ykZLLLUVsq+xBB1tzlxB4XLy5ac71lJ3z8uBJ9y3CnUQFicY9w5gV9BPxf217B4H8FcBloIF0z1I/qnZZX1WsLYqa3yrsNqeExmeP/ZT6gEqvAi46oJvaSPrOhcmoFzbobkxWXxrvEPsm2F4MwxugbcNUwCn1nm030/3ta2jIP68t8dmcV+uNtILCiv8BxBJyiZGr+ENsZ2nKluq4B50fBLrHv33dpnyYezMwE2+v9C5OBELe5R1ShfqXaxvnf3fZjSMT/lv/+m7g7JOGPtaHm6wlltgBK8vV4sYcH8mJvGeAaiXqFk3JVWMaRuVsIw5uWPWY2jPvgJ25ddlJ2Z1+2eJEtsw8RZZ785HgSfBKEwHDDNlG85/Yqr501Xjw4SzeN/3CalbVWGrVPa+s/wc5cjCFNe60NAcDaMdfc7P3HQe+E+5ij0rOTXwBd4HlPXNsFA8iDGGHqgLoWk/CyrtTnN8s7CzllaaSyWPG7bLLDaigMDJ8fzDL4Qmrp8=
file:
- "app/build/outputs/apk/release/manager.apk"
- "push/build/outputs/apk/release/xmsf_service.apk"
on:
repo: Trumeet/MiPushFramework