forked from switch-iot/hin2n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (62 loc) · 7.67 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: android
jdk:
- oraclejdk8
os:
linux
android:
components:
- tools
- platform-tools
- 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/"
- "$HOME/.android/build-cache"
install:
- echo y | sdkmanager "ndk-bundle"
- echo y | sdkmanager "cmake;3.6.4111459"
- export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
before_script:
- cd Hin2n_android
- chmod +x gradlew
- git submodule init
- git submodule sync
- git submodule update
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_13aef818f0d2_key -iv $encrypted_13aef818f0d2_iv -in app/Hin2n.jks.enc -out app/Hin2n.jks -d; fi'
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./gradlew assembleDebug; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./gradlew assembleRelease; fi'
deploy:
provider: releases
api_key:
secure: S7RNC8+pQ39/+9L4Ea7uoD2mM8VnFGuftaVyTOI65aX6rkEc8pM1B+Offl9Fgq18FoMy4CffrnXK1XY+bVI3bcgbQzAmtzMrvALvOb2N01dGPMDsgcmCWtmWUbmv7T1BqBuuf/a74k/l8m0WCAs48jO+E9UdTocPLTrKZrRVC1HtJ3t2aFm9A6WvXY9/uGqmtCUAUZHWkVAn+JLrsL5A8xRu16L1Ql2bZMGY9Nie2ixGYA7lOleo14vYbRqBkBPO2CNeUkmN8wCc1xyzCNbLtLgVhZbSA+IVzBZ3ZMKWbAI/s6+ZhE6kgGGMVRZ2urZRHgp4XPWowlGKdrF7HVPDK8kfDy/yaw0i1OuzYZbKx9wDU8rDy32eFAE4JRS2xkqAw5wjhpzuplL0agU6MkujeNR3VMTLSwJfbrZvIHnWdxhLCD1804P5vaOkQaY9JyQBk4+5PEUCPXEE7LTODvWuKRDa/CNb5t9f3VlxlNmnCV2DnM88BQpCx6fXP/xhpdhNu93T0SgBwNEZ0ta7s3BvKYg2ohhFeWLLx4kfNkzjbrYQFFI8KgCPjSbFbvAP62gxSKn8IsgK8zVZZDzfrBJ5CPIfwms462e/UK37iozMwwAFKcoFDlnD6K8xFvK8csnQ+jsUEFVbFg1w+0tqwzZm+pBKiJHuAw6q8Agr6na7Bdk=
file_glob: true
file: app/build/outputs/apk/*/release/*.apk
skip_cleanup: true
on:
repo: switch-iot/hin2n
tags: true
all_branches: true
env:
global:
# HIN2N_KSTOREPWD
- secure: iOkHa0yGhQWanR/EOEEqyeVVT08QWyNZf9Z7L9T9qBOMpJp92MdBAQkQnbMmA0hZ549OKM68Zfyea0u3cMN9g1vdw7kKEb/ZyaLFtj+YPodz7Aeos6Fb2PsflQdVayt3ROcwBi/GpL2WuYrZGyFLfJv2a6qyR1GYrsmgGBioH5W+0nszVpBhNW78SWvJE5H571Fpuud2swb6u0lg3flAQ60SywpSZhDpUJ5rRfTe98muLs6eyJYXsBgRVPfOqODRqt3ef+yO4U+QI7pCAKuC8bUzSEuZGyB74V8KQxyh+eiBZo2LfH2V4cVDDVfCW5kMjgt5VRFt78Go5YxTyIpFPXAfMJZmFE1jk+D85+Ip8Co1nIKesiwTNhCFOvWVzEJd/W0QnOJPPDpqWzNdoIBG1M39v2AVs9qKgXaGRjECPgB/fs1YnNBPL8tS7Aj20mMzsSt7w4lpPB1es5NUYYjM1vnnPvBWlZ2n8CtDgL3xWIkkZcYPOP8q3dbwYWVho2w/fsBoWBID4m/hhA3+wE6myPo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