-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1.84 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
language: android
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
- ANDROID_BUILD_TOOLS=28.0.3
android:
components:
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- extra-android-m2repository
- extra-android-support
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
before_install:
- openssl aes-256-cbc -K $encrypted_0cafb2288b4f_key -iv $encrypted_0cafb2288b4f_iv -in keystore.tar.enc -out keystore.tar -d
- tar xvf keystore.tar
- 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
script:
- "./gradlew assembleRelease"
before_deploy:
- ls app/build/outputs/apk/
- ls app/build/outputs/apk/release
deploy:
provider: releases
file: app/build/outputs/apk/release/app-release.apk
api_key:
secure: AuzF1ipsvH1S6UxWqCJ85VnhwoFWwK7VxAocEfc4eC0T9SotdJ2luQOO65qmH9yefiVxHRhxNVUtkMoHLeKUptgT8LSkDQWqm47x0kkcMi2f/XMjgbAuJ3o79k7nBsPVerCBMT+r1cENKJiQbaY+08peKIpeDe+yrKmYJLOyTlrSJQXcsP1mIWuK/hZQF8omp6/B8IAtY9zwJXCltz8rkzl41dIShKknpseVbtk44tpH1yRYx8u3MWt8pgxOqK/MuDCBCtWg3ZyihqtmJa2tSljWLgZmehEZLibbCfIpo9natvYandwF9c3v75SXj1XHcfYX57akWUBEoY7VmbVemdR72WbICD9N5sR0eTnn+ld9FJZPLEijmQ9/cxZaJv5Ue2uZSOvsEz+Paj0/vi549vmWtApHQP3V6gKE+D85aVfc5++NCzXDI3FzuK8OfqsZOI+wRQQjVcc/pQ9GcBCnH1+0lnUnsnPHgrsNl8yMvW8Jrxp6wi3ZGWmRbHec434vN8RtV3Co+dIKrNqnuOJicwCVHuxs8ZGSgeaT3AV3xKWjMStgU6ruo3PkwEnjWprMvQL6DL7t3524yxUJGxLXAEQyjyAmvGJmxUEUZsagTu8gJSOXo3k70YLX1tLxQ1u7UBxvtE42twKfVSo8WA0MknfO9ftAYixjn5M+DHeT33I=
skip_cleanup: true
on:
tags: true