-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
76 lines (76 loc) · 6.28 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
73
74
75
76
language: android
sudo: required
jdk: oraclejdk8
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/"
env:
global:
- ANDROID_API=27
- EMULATOR_API=22
- ANDROID_BUILD_TOOLS=27.1.1
- ADB_INSTALL_TIMEOUT=5
- ANDROID_ABI=google_apis/armeabi-v7a
- secure: h51vBQ5GfZVq/gZYGvI4+f4JSAsDK6DIcbhbSGmtkmklj/llO/kgsqSnQ/Kp8igt7bu/gluMC9pjngIqb5eU651erPK1X8hNXVP4JvmAvJQfwoKGZ/uubBbfi0E8FlHhtHaVRs8JSLhM9MT85A/iqpFL8yOPiuzm1hLF1V5ORtU97miCugFhF4QwELod9/tU5f2GhqRjXKXw2MFms1NTYhGAmhgMB6+xuCX9kK1eavY9sZ7QPWRTm82QV26O38s6Q1h0yz7otwk8nL5SiufZ7KOzkv2VpHsz858A2LTl+kmAw5y2BfcXIW/4rAd7tkT5mRfqWw899h4YB4+CgQzEgoALMeR2y63SuWnDqbQL5noJhJLRi98m86vED4t59bTQ2fZkjdynxv9sUowXkHyRtBxRkB4Yn6HMBe8wSX4hSV3b9FMp7zOTEBu+JjC2muyeVsge1kM2ZVP5r42HV83hZRPAhMmuPfVgCi3rXefcQ270/CUV3kxw2ZBuAXiNjGxidfAOMbxb1CvWTgxcubE9Rv2qRBiZqMxI/5j5ULRsLwH0hsnOWNfNYpsBLPHyGTA2kGIS/RZ3lK00NYI2IrDIxeSs5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
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- android-22
- sys-img-armeabi-v7a-android-22
- android-$EMULATOR_API_LEVEL
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-22
- sys-img-armeabi-v7a-addon-google_apis-google-22
- sys-img-armeabi-v7a-addon-google_apis-google-22
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- openssl aes-256-cbc -K $encrypted_f7d6497b3355_key -iv $encrypted_f7d6497b3355_iv
-in hapramp.jks.enc -out hapramp.jks -d
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- echo y | sdkmanager "platforms;android-27"
- echo y | sdkmanager "build-tools;27.0.3"
- chmod +x gradlew
- "./gradlew dependencies || true"
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-skin -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- "./gradlew clean build connectedCheck -PdisablePreDex --stacktrace"
#before_deploy:
#- cp $TRAVIS_BUILD_DIR/hapramp.jks $HOME
#- cd app/build/outputs/apk/release/
#- ls
#- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/hapramp.jks
# -storepass $storepass -keypass $keypass app-release.apk $keyalias
#- "${ANDROID_HOME}/build-tools/27.0.3/zipalign -v 4 app-release.apk Hapramp.apk"
#deploy:
# provider: releases
# file: Hapramp.apk
# skip_cleanup: true
# on:
# repo: hapramp/Hapramp-Android
# tags: false
# all_branches: true
# api_key: $GITHUB_TOKEN
# password:
# secure: cGRnAZ228DE+HvhB1h9AvrPGhHhudt6L++Y7CLQmy9RnKjl4mrrVM5BCJu/X/gc7Wmlz72hAx4z7h/0wv2+Q4Km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