This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
forked from EspoirX/AppLock
-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
100 lines (77 loc) · 4.61 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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=28
- EMULATOR_API=27
- ANDROID_BUILD_TOOLS=28.0.3
- ADB_INSTALL_TIMEOUT=20 # minutes
- ANDROID_ABI=armeabi-v7a
- ANDROID_TAG=google_apis
- QEMU_AUDIO_DRV=none
- KEYSTORE_FILE=applock.jks
- secure: "a3oDv6vgqN7bhEWEJeNG+tohxD9Am02dqQuF84aZy1pOqG1ruwdSsE7odpp+YIPv4FpHuDWmfONf3TBeS7YocviXYVpAX7+dA1xEvvt9FRV0Aw5DuasZiINTkES4ESkMQBtTNSd1rP30tHDFYhYfCt/qmVdHBxQpjohSPpkl0FfVxY8lSeb2pPxOlVwELxvVvfHGooYWaNhpGxpCm4xhhFmuHVQtjhM+sI/5vJy4cUUu0rRWSwevzM1mr49fSjlCNdTVAOCLkCvavzfSX/5N8v/PBhHXcL7/FvHE8bD1w3oRcJdAXqdg4Pbcp5MPmuCcNchs+rxVYgL5DSAYrAEwUu5INRCo8BBPSmlECCpgDQ6jOtABfPpFybjI7eyF0wfBB7k5wb1yJxdu7+wGfM0G0OGZP2wyM4+UmkDuvoQeJJijYob2hpTqK46AbWUNHaXRfMLBRkw8QP44LQeFKc1YhtTcUPnt0x+OXh4VTeoaNwxxjmsvkyoMQmrRLc8xxHuRNJHfNhTY1/a+bNLqScAs1syz8IY/bN8qPou+J1973DA5HUbxy+2D/+v0sBBxX1Zp/t8db66JBtdPmrfATmN53vRgEK4W4uchDWzup1l5yF8+rrRJSHA0fW8OuYFg4PltqNZVtr2KxP1fsI/uC3zmnBwb7fIOQqy81nESDehwN98="
- secure: "e4+LUfEEjOkw/b4p23Z2dkiV+VvUZG8gEqJQwsR3ElpFTFf/0qQZSKdkQ7Fks3E9AIiQ2BSrhcdQfiHDg0VikL7yw/ZMWQb2ZWklY80bSNfO2Iienz7nvBy/2idLq5U833cL6Cy8tzuIKTmPC+xeyaYIBXcYcmsMCGdAPPUD1OkowyBD++mnJ1Dem7HLLzjdGyuteGpXLpdIqVt8pS01meBvVfx8bcbGEW1ZgRb0h8ZCYkmXA5naVjP4zwWemwgU9ueJkCm77EhhZSiegWCjb2q1X/1DAuFmjgVrWzbbiaSWunoS0KRyjwMXr8xrawHxzXwSlIZeFiMtjIcz6hCTY6e9hvnpucysZbU5MGY6HQkXeHlLExcQs6vn1pImJQ917n+V50W/NpNgnhawPjp5cxgfiPBYXd5S0AeSZQYiY6fBO8TiYjOGQ42aPwltsjdB1wipy8huG0aBKD2fOKjDdBVkQYHcDZGXzBQ03Jkp4H3DZItfIMUFhLMTbbXcMVwO6I98L2t4OrdyGKcJIsdnph4672XL+4004H7rckY0KmHpRiIddBr6IQ32dXczFBoxlK3Nwvhl1annTZNUGKvCWV01CnArvxANXJRK3/d71tNj4wSPC5MmqSSXQx98SnpHlbAvoKgM+7T0kHmu5wInczuf6jC/GwFO82OKbjFt1iw="
android:
components:
- tools
- platform-tools
- tools
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- android-$EMULATOR_API
- extra-android-support
- extra-google-m2repository
- extra-android-m2repository # for design library
- addon-google_apis-google-$ANDROID_API # google play services
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API
- sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API
- sys-img-armeabi-v7a-android-$ANDROID_API
- sys-img-armeabi-v7a-android-$EMULATOR_API
- sys-img-$ANDROID_ABI-google_apis-$ANDROID_API
- sys-img-$ANDROID_ABI-google_apis-$EMULATOR_API
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- openssl aes-256-cbc -K $encrypted_6c76516e56aa_key -iv $encrypted_6c76516e56aa_iv -in applock.jks.enc -out applock.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"
- chmod +x gradlew
- ./gradlew dependencies || true
before_script:
- android list targets
#- echo no | android create avd --force -n test -t "android-"$EMULATOR_API --abi google_apis/$ANDROID_ABI --tag $ANDROID_TAG
#- emulator -avd test -no-skin -no-audio -no-window &
#- android-wait-for-emulator
#- adb shell input keyevent 82 &
script:
- ./gradlew clean build connectedCheck -PdisablePreDex --stacktrace
before_deploy:
- cp $TRAVIS_BUILD_DIR/applock.jks $HOME
- cd app/build/outputs/apk/
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/applock.jks -storepass $storepass -keypass $keypass app-release-unsigned.apk key0
- jarsigner -verify app-release-unsigned.apk
- ${ANDROID_HOME}/build-tools/${ANDROID_BUILD_TOOLS}/zipalign -v 4 app-release-unsigned.apk AppLock.apk
deploy:
provider: releases
file: AppLock.apk
skip_cleanup: true
on:
repo: subhamtyagi/AppLock
tags: true
jdk: oraclejdk8
api_key:
secure: "hhAUsWX+4d0oqDp1ZxLzsSNjs9z+W6U8LkrCN66G5RsIB9wrQ3SqTiShBWk/EoYKT8HqJAYOnKSykn4CVGWlPsC8tfjGvT5r4W+CXQyFoqvxAGtG8V1THqIol+X/v05+LPVlYA+kc0c18huO1FgEL6WdC8Ls30jqj6KHVrcIcer1yc666wWBhj6gHgkFCVq+gjDSSW8Vn0nDVXXixsXgXdf66Mgbfn3uyOVbYYmlUGT02VaASmNiCTbOBRcd/csJ3e44k3ybsEDoP8OP6vFp1TCugaQEJAXUGwiDQHj4a87Y+VWO0zPQR3rMsF1QyVgGLdUa9/OkJ1J1ecAxlY48Pg+V4aupurOjLnePQWpiQW2TqS/zlssUExwAoWqOgZldWqoU4/kLiLVmbEZziEJfPgJYORvO4KMls0/LSwa/EG05dnT3t2pPE0MuLK6HiNbMjTW0gM7EJeRMNZSWq/aEl88RnZJ9UHSEuM8fE8vFhCK1TOBDBX2CAh13FPgPFr8/Cn7cD/E2WTh4Q1LrcmwCJQRTF0TdNXXmvyaK0bRUO37OumiNdfcrAFyR6jSFKDIyf1qOIMisZP2QpRaRjGbCwimd+iY0F4Uimml8cZL27OgdfAH4MWHprxl6TpM33zd+jHKmbH1kYQ6btz7aT1+DgIZhv/KVVMrCW1DuESlSCuY="
after_failure:
- cat $TRAVIS_BUILD_DIR/app/build/reports/lint-results.xml