forked from CarGuo/GSYVideoPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (35 loc) · 1.64 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
os: linux
language: android
jdk: openjdk11
android:
components:
- platform-tools
- tools
- build-tools-30.0.3
- android-30
- extra-android-support
- extra-android-m2repository
env:
global:
- TARGET_VERSION=30
- ANDROID_BUILD_TOOLS_VERSION=30.0.2
- ANDROID_HOME=~/android-sdk
before_install:
- chmod +x gradlew
- touch $HOME/.android/repositories.cfg
- wget "https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip" -O commandlinetools.zip
- unzip commandlinetools.zip -d $ANDROID_HOME/
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${TARGET_VERSION}" --sdk_root=$ANDROID_HOME
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" --sdk_root=$ANDROID_HOME
script:
- cd app
- "../gradlew assembleRelease"
deploy:
provider: releases
api_key:
secure: 37XZTS6kJROMJtr77FuCwhlYMUaSWzh2wC8aBE49ZSzhJIkhUy3BiaVK2h+AyQtMT7qb0D2c3efuNViJKwR8lQ7BZG5pSG/2bky3ilXINfnCn84SzUXGyHYPzCT/VzjNMcrnkqlawTvtPmoR5ohWJ1RD+oiL2RXMCbjQYmkTA4SZQqdOvcmGsw1rbqtC3085SmF5nB27IAOX29phZSJ/T3J3MTDmFuosfBrQBmFdzOt/9A1n/Qew4npF5xitvQC/rjhVelEXOC015HaJN2co802l8XDLQp2sZvNU5UHaX2ENawe08tHNpuNMKDxwaGVwi9t579OJCbOiNerIIRcM6ZYTy97OdxsMHFhfW+NvMae4pf1B4EwsgI+La9stfERW4XUuK6xL3tmvUZEvre5tuat+Y6aZfzDDObmt1/V8eljGycYt2ab7/sSppi97NBOI/dYAeLv5a1MTrqqfkA0igx5tNcnGPVENW9XmgXyeMHOyBdvYA2plnhhG/ef2G+QxMC+zMH1QTKYceObaKQs9COv3X5pdAH5fDQ1L+oNELG4Q3VlyEDCQ54n9dfrMNVu9V7IyA04iWilv30aOOIFNCJfXP+b2HtB7idV+9UDDsyln+ynesrs3nqQ0dd8MjOxKSIS+GSfqKVLg4r6H9qIAz0U4RbFKc+jlvAjQowhbpa4=
file: build/outputs/apk/release/app-release.apk
skip_cleanup: true
on:
tags: true
all_branches: true