-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
49 lines (49 loc) · 2.02 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
language: android
jdk: oraclejdk8
sudo: false
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/
- $HOME/.android/build-cache
env:
global:
- ANDROID_TARGET=android-22
- ANDROID_ABI=armeabi-v7a
before_install:
- openssl aes-256-cbc -K $encrypted_63bf676bf253_key -iv $encrypted_63bf676bf253_iv
-in android.keystore.enc -out android.keystore -d
android:
components:
- build-tools-28.0.3
- android-28
- tools
- platform-tools
- extra-android-m2repository
- $ANDROID_TARGET
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
licenses:
- android-sdk-license-.+
- android-sdk-preview-license-.+
script:
- ./gradlew build jacocoTestReport assembleAndroidTest
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
- ./gradlew connectedCheck
- ./gradlew assembleRelease
deploy:
provider: releases
api_key:
secure: asdiwBpc7rzup8Ikj4CdOlqC58v9Q+mVPUShR2Z7IEbfm8uBHWfSJ8nhqHXGCHkkGLCpZMxFitRK2nNqIXlsfFmdO8kuBSlJYVDp1TAbSXGOyLNpP5OvI7b90BZLMRLJczPSsKoFtQJkEIr8JIjXNvFrS/CsEt6WjnoKDcJfsKrag9Jjt0708lddaeDcrJ6rhD9KbLdrQTAp7aGqq93YdEvLc1BN/WNVm4UjWlr5ZpucSUKPop3rAVh/I06rD9hmf6u/nOeBLPB5lOoNZErbX0O4lq/fZmv0pE+WV0gLGJBs1NNj1hoXRw9B0KMSNk6Diaib2lWrB7W+iWe3IaAZZ7iWNfBUotwNewuHnotn6Iwt9heoiUIsckQ02Hba0r8preGFtCa2TfPOVUmFzAsbezJnTbxMgFoKD2SwRjQDTKhGOJnYrnBR2Mx5I6Vx653rUDaTnXn0boqH75zTDx8v8vgnl+yNeEmCLDxdjmCUiuXi0jSCrdvVq+zBoQHv8QveNuzoqkGYdN3GQBM1LzfbkyTnIkxdS9HugCQqceW/SGd4bcDusyN99ibZq3ja/4jP+dc36/fpCQrIzYu3upDhGKQ9eCuZCriolzYg+83LYPXzDSRZOYQZOjTWtERG7NgL2nwL5JEySlL/i9hVdm9S1Hyjum4mcQu1ytt3Qm/PV4w=
file: app/build/outputs/apk/release/app-release.apk
skip_cleanup: true
on:
tags: true
repo: picone/MusicUnionSearch
after_success:
- bash <(curl -s https://codecov.io/bash)