blob: a2251756545f6a2a446296050b320e32828fd64b (
plain)
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
|
jdk: oraclejdk8
language: android
android:
components:
- build-tools-28.0.3
- android-28
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
script:
- "./gradlew exportVersion --daemon"
- "./gradlew :app:assembleRelease --daemon --parallel"
before_install:
- yes | sdkmanager "platforms;android-28"
- chmod a+x gradlew
- openssl aes-256-cbc -K $encrypted_8cd0a575b07e_key -iv $encrypted_8cd0a575b07e_iv
-in secrets.tar.enc -out ./secrets.tar -d
- tar xvf secrets.tar
before_deploy:
- export VERSION=$(cat version.txt)
- export VERSION_CODE=$(cat version_code.txt)
- git tag $VERSION_CODE
- mv "app/build/outputs/apk/release/app-release.apk" "app/build/outputs/apk/release/app-${VERSION}.apk"
deploy:
name: ${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: XJm52+zcna49O1IgDQrNARMIEAOSTbfKBzUSQkRlN/52ZDrUd/FFRwWUa2MmhojT50bQMTHKOqg8HLjvXKjk6ADUnvt9FNEZI9AIU9cHMzADrJ0NrWTLPPqfHD0N+mPKzuRdFO6kYZe6ALKFzeXEGf/6/v2mfid2XIXgfGrCu2bd+Q5WZCxhzoHbIkPZJin/XlF1l3FPhipHs7J2OaoKKzQMAaCLtklrx2TfvraKgXH7dGqvYVvCVHs8HqesjIXnuFtGtVx8FIvTq5/N6gnO5IYTitGgSzoK+cpdUDmAKL/PvNOSu90StS9B4Y3H6oIp/LV+ZcSj+8Z1s44VHKBMlOK6BJ/YSYv0uT4bD2yKUDTSCYXfqk9K4s0mBVePkHIt8kMHNvmF/K/8+kzvP4tT7zcu55OTahQ/rudizOFNLJOPhyJt3U4X4zAHjkjL6CDR3GRqr7oBxZSZiSlcnVdHHOF2jty+jaOhx+5PyY+bqf2fOJxR2ezRz1mmF/3qQXW6fV5LZ+Ep3Xtc7ABjeCPQC3HpC5bsOMmSOjhwwU1SBo9SyiIHyeSE5HMpmEAfUnvbNoBjr6V5AywdJLGK8fVE9nDOJTJuNvpn5wDzpUJemV8pjYQ6odkysM4f+3MA4As+ApAfAryuv0k9EQvNizTpU0DDfq5RqOszTMCnhrmo6nI=
file: app/build/outputs/apk/release/app-${VERSION}.apk
on:
repo: Trumeet/WorkMode
|