forked from moneymanagerex/android-money-manager-ex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (70 loc) · 2.25 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
73
74
75
76
77
78
79
80
81
82
language: android
# https://medium.com/@harmittaa/travis-ci-android-example-357f6e632fc4
sudo: required
env:
global:
- ANDROID_API=28
- EMULATOR_API=21
- ANDROID_BUILD_TOOLS=28.0.3
- ADB_INSTALL_TIMEOUT=5 # minutes
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-$ANDROID_BUILD_TOOLS
# The SDK version used to compile your project
- android-$ANDROID_API
# Additional components
#- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
#- addon-google_apis-google-19
#- add-on
#- extra
# Specify at least one system image,
# if you need to run emulator(s) during your tests
#- sys-img-armeabi-v7a-android-22
#- sys-img-armeabi-v7a-android-17
- sys-img-armeabi-v7a-android-25
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'intel-android-extra-license.+'
- 'android-sdk-preview-license-52d11cd2'
- 'google-gdk-license-.+'
# This fixes the required permissions for gradle build.
before_install:
- chmod +x gradlew
- yes | sdkmanager "platforms;android-27"
install:
# Check install section: http://docs.travis-ci.com/user/build-configuration/#install
# If you'd like to skip the install stage entirely, set it to true and nothing will be run.
#- true
#before_script:
# Create and start emulator
#- echo no | android create avd --force -n test -t android-25 --abi armeabi-v7a
#- emulator -avd test -no-skin -no-audio -no-window &
#- android-wait-for-emulator
#- adb shell input keyevent 82 &
branches:
only:
- master
- dev
script:
# By default Travis-ci executes './gradlew build connectedCheck' if no 'script:' section found.
- ./gradlew build --stacktrace
# add --info or --verbose for more output
# deploy:
# provider: releases
# api_key: "GITHUB OAUTH TOKEN"
# file: "FILE TO UPLOAD"
# skip_cleanup: true
# draft: true
# on:
# tags: true
# publish only master branch? Use this condition to set-up both Beta and Release builds.
# branch: master