forked from daniel-sudz/simple-dl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (65 loc) · 4.23 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
dist: trusty
android:
components:
# installing tools to start, then use `sdkmanager` below to get the rest
- tools
before_install:
- chmod +x gradlew
addons:
apt:
sources:
- deadsnakes # source required so it finds the package definition below
packages:
- python3.6
before_script:
- cat > local.properties <<< "chaquopy.license=${CHAQUOPY_LICENSE}"
env:
global:
- ADB_INSTALL_TIMEOUT=8
- ABI=armeabi-v7a
- EMU_FLAVOR=default # use google_apis flavor if no default flavor emulator
# PATH order is incredibly important. e.g. the 'emulator' script exists in more than one place!
- ANDROID_HOME=/usr/local/android-sdk
- TOOLS=${ANDROID_HOME}/tools
- PATH=${ANDROID_HOME}:${ANDROID_HOME}/emulator:${TOOLS}:${TOOLS}/bin:${ANDROID_HOME}/platform-tools:${PATH}
- secure: "o9ZDG+QJAuFfOmwVstMeejMQNcSA6h0yAuOxCglAjQkK6F7PJ+XCweyWLGU2baXCE1dDLD0rUGEo72iRaAQqkD0lJqO+OuepC/ZE/W9Je2mnAETEOC5tfpWLqrUTLmqoRNUGOsleuwgVVR7TJM8UdUzLuA+3Pp9a/VXIvLCR/05PQUPhpIFL5ihJLPUojBMM57jp/9n08CWfqygVo6MGhgtI/DLYaA/BX6JQfaRy71fQTikPXqt2sj6HsthZ8B5YLQkXbfE8pr891KDSPjitEc6u0jPBMkaZxRq9tOprrlZGrSiQBJyPgo7LXkfRBwJLOv5eP8Ph63FGX5i9y8b42xuQP/wRyojB5GXqt4xZUpFoCMa0ZMiMRhinrcumuerZJ/Xks97MlC7rwYKgWNLydmgdS4qt5wKkMghVvwW20RErYLVsc+WIL8/C2ijz0gtIc2EcOohpqeJ3L1elOvd7ZiOO/0a20rvl5Cz46HdRQo1pKDVCT2GRRGDwzIMHxmfZBRduhAiAEA9fAEWXT+M6/EN858xdLyWZoMMRQ7GxwBYNLB14FxhdhpEuquDUjJxaTYobFDdDg288reTW4gU2W1b8Gms/gYeJ/hD1acEqgMyu2pMcDjUy0BlNZmQtvZ4wckdV+fIhfOQehKNtEMmwYIVjYKvdAjHcayqc4ZDZo/E="
matrix:
#- ANDROID_TARGET=android-17 ANDROID_ABI=google_apis/armeabi-v7a
#- ANDROID_TARGET=android-29 ANDROID_ABI=armeabi-v7a
- API=24
# Emulator Management: Create, Start and Wait
install:
- p="$(which python3 | sed 's/\//\\\//g')" # find python path and replace all / with \/
- sed -i "s/buildPython.*/buildPython \"$p\"/" app/build.gradle # insert python interpreter path in gradle build file
- echo 'count=0' > /home/travis/.android/repositories.cfg # Avoid harmless sdkmanager warning
- echo y | sdkmanager "platform-tools" #>/dev/null
- echo y | sdkmanager "tools" #>/dev/null # A second time per Travis docs, gets latest versions
- echo y | sdkmanager "build-tools;29.0.2" >/dev/null # Implicit gradle dependency - gradle drives changes
- echo y | sdkmanager "platforms;android-$API" >/dev/null # We need the API of the emulator we will run
- echo y | sdkmanager "platforms;android-29" >/dev/null # We need the API of the current compileSdkVersion from gradle.properties
- echo y | sdkmanager --channel=4 "emulator" # Experiment with canary, specifying 28.0.3 (prior version) did not work
- ls -lat ${ANDROID_HOME}/emulator
- echo y | sdkmanager "extras;android;m2repository" >/dev/null
- echo y | sdkmanager "system-images;android-$API;$EMU_FLAVOR;$ABI" #>/dev/null # install our emulator
- echo no | avdmanager create avd --force -n test -k "system-images;android-$API;$EMU_FLAVOR;$ABI" -c 10M
- emulator -verbose -avd test -no-accel -no-snapshot -no-window $AUDIO -camera-back none -camera-front none -selinux permissive -qemu -m 1536 &
- android-wait-for-emulator
- adb shell input keyevent 82 &
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "lprc"
- git config --local user.email "[email protected]"
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y.%m.%d_%H.%M')}
- git tag $TRAVIS_TAG
deploy:
provider: releases
api_key:
secure: Icp1G6lhAMYJvqyJRWKcqVBNRIa6A7PaLhh5LPUqkHjm6spsLKHrR9ZEFx/47JH+FuFGVQbZ72wH0snMciOUsnuxIwDU5UA9oL/e2nTH54qBzy49vODvlp4JCJmnbSXapNn9AuVa3tSvFXg5FqRyLRfR1Aa7iXOV2P+F5tgDvDTJs5bqJchr+G6q82wflsrNh2ae4clMTwgopCDpkKXCECGrhyoX8bUEQPSIbYaRv+L/RUaZ8nRUUwE/vXQ5Z5cXbZMY7nOnGpVnmUj9QLz0f8zbMw2D7hFgbKCh5IXI2ZPrUqfznzVRR6ed8hc/zqEkxj6wHa4a55Tb23Uapi+15xZdQfR5NksD6KztilOtJBi6AayPvsOv6Jgb3arRPpxn6gJ63wAG0Y3m1V6WN86mWj3KIsfRG4ZEjNj9aKNhiJnhHFz/Hl0hs9DcHKxuoqN+wDJrjF+cswWbvMe5xyvwfT0V8MkyMjuEnDOD2182V7GR5ATOpfJPDWusyUyB9v+Fk8YTtaA6LwYFgOVTqCj7YQQwnX7XSTgw2BHN9P3zhMDFs5ka/UXv8/z1kdVQPLfXRDSvQqyRqQkShYvajwnDzFDxSXhelyS3XDQ76iZOl9ZfvB5MgaqA594DUIkkpW0qpZvP7kDE5c9r6XNkbXXOQ10pL5JwMePiu6o4EtnSpH8=
file: app/build/outputs/apk/debug/app-debug.apk
skip_cleanup: true
on:
repo: lprc/simple-dl
branch: nightly
notifications:
email: false