forked from bin456789/Unblock163MusicClient-Xposed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (36 loc) · 925 Bytes
/
.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
language: android
jdk:
- oraclejdk8
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
before_install:
- yes | sdkmanager "platforms;android-28"
script:
- if [[ "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
openssl aes-256-cbc -K $encrypted_3327ea27a2f5_key -iv $encrypted_3327ea27a2f5_iv -in Bin.jks.enc -out Bin.jks -d;
./gradlew assembleRelease --stacktrace;
rm Bin.jks;
else
./gradlew assembleDebug --stacktrace;
fi
before_deploy:
- cp app/build/outputs/apk/release/*-release.apk ~
- export APK_PATH=$(readlink -f ~/*-release.apk)
- echo $APK_PATH
deploy:
provider: releases
api_key:
secure: $GITHUB_TOKEN
file: $APK_PATH
overwrite: true
on:
tags: true
after_deploy:
- rvm install 2.2.2
- rvm use 2.2.2
- gem install fir-cli
- fir p $APK_PATH -T $FIR_TOKEN -c "$(git log -1 $TRAVIS_TAG)"