forked from MiPushFramework/MiPushFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 2 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
jdk: oraclejdk8
language: android
dist: trusty
android:
components:
- build-tools-27.0.3
- android-27
- extra-android-m2repository
before_cache:
# Do not cache a few Gradle files/directories (see https://docs.travis-ci.com/user/languages/java/#Caching)
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
# Gradle dependencies
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- "./gradlew exportVersion --daemon"
- "./gradlew :push:assembleRelease --daemon --parallel"
before_install:
- yes | sdkmanager --update
- 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:
# Create tag
- export MIPUSH_VERSION=$(cat version.txt)
- export VERSION=$(cat gitTag.txt)
- git tag $VERSION
# Rename
- mv "push/build/outputs/apk/release/push-release.apk" "push/build/outputs/apk/release/xmsf_service.apk"
deploy:
name: ${MIPUSH_VERSION}
body: Snapshot version automatically generated by Travis CI. Please be cautious to experience due to potential bugs.
prerelease: true
provider: releases
skip_cleanup: true
api_key:
secure: PDXnJ6QrAr8OMG88ShNLySwetqNeXhCn2jP+IgB3Hp0epNEbTL2mOf+dMvWoZ3mKDjm/KkkZP3SNkdkHcO1IfDlzkBNf8wUctBk9V8SEzMLooz7yPcAcHN3UaiIUDZMmZ4axZGXr9WW8gSGvv7teFtLCZFF0qXa8GaXk0brexg1S+lpU5yO+wGvVgSJGBmDW8FZOCIMGA5voamJ1MSFWD+AVD8YpiA4xxGYQHmyvKeMb1MtlnP6rAb6DKZrCISckI06AFuH1qDYCoCM6M6htNGs7gSbm/M0WoQjAWvfVKFfz6vrojzvYHYt1iEf1yOlvkkg9WrC+UDhu91yHouPo5Ocb8Kz3mHwMF8RlCJxm8mXcRj71qAJ6URLy8q3SqrKC2rBfxQ7X0V1DzqAQj61StOyf17VtfGORJ/hwR9vtjyuqR/e33zqtMghAh8QQT3CL9TAUMcvLHMumZLT8SXr7U4SxWg5vylhJH0RHox/F0zlwhLEP9/Yvu7yc5bG2KWiEyFLiW7hB9XJhmn1CrYCOMxqQWA+CvdjlkzedugWZuFRm5ToTlZ6b9WBY68M4hLcPM+ndAKPq/kCPv2+QDyS69khk30CLLKPbxkcKBPjzLsiRkLKWLdV9tmK/yymHJaaHCe9TsgXdqLnN4KNTWcbtwutV8vVb1RK3dBx642enLE0=
file:
- "push/build/outputs/apk/release/xmsf_service.apk"
on:
repo: MiPushFramework/MiPushFramework