forked from openhab/openhab-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 1.78 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
language: android
jdk: oraclejdk8
env:
global:
- secure: fMBUkSsCBTw/U907w7Xm/yNzw4lq9yt7zFy0JyEZrA543LI7zQRIclIOtsDTUs0bwY+4KI08MNoYPLJ4TQhSJaH4wQ8b9C5TRsqXNfc0V718TcuYqSXqU6VPRVtX46/fCEWv/HAs0ksUKrHIlpWOwLPQpYDcKxwwlUndaakYKJ8=
- ADB_INSTALL_TIMEOUT=8
before_cache:
- find $HOME/.gradle/caches/ -name "*.lock" -exec rm -rfv {} \;
- rm -rfv $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
notifications:
email: false
android:
components:
- build-tools-27.0.3
- android-22
- sys-img-armeabi-v7a-android-22
install:
- echo "mapsApiKey=AIzaSyA2t2893e9wccs9EnlnauJRgtqFNYQSp-o" >> ~/.gradle/gradle.properties
- echo yes | sdkmanager "platforms;android-27"
- ./gradlew --version
- sdkmanager --list || true
stages:
- test
- deploy
jobs:
include:
- stage: test
script: bash travis/test.sh
env:
- desc="Build & test"
if: tag != "-fdroid$"
- stage: test
script: bash travis/uploads.sh
env:
- desc="Uploads to GitHub"
if: branch != l10n-crowdin AND tag != "-fdroid$" AND tag IS present
- stage: deploy
script: bash travis/prepare-deploy.sh
if: tag IS present AND tag != "-fdroid$"
deploy:
provider: releases
prerelease: true
file:
- $HOME/apks_to_deploy/openhab-android.apk
skip_cleanup: true
overwrite: true
on:
repo: openhab/openhab-android
jdk: oraclejdk8
branch: master
tags: true
api_key:
secure: JaDHY9PaBF625dfulN8ygmOvBk3ZDmnZZDr7IPwqJ9hZ+4WzS85om8F9+bgQlZTDDVUeaNZ03ZkfRZ81g9D0EEHF5WSFqgN8aUcNoAa8ViBFAQUeO1uTjVkiP0G7JOVRyW59HTTk6Cjr5eiGKkmeIGT9KgUUi+4Bw/6Quag8f8Y=