-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (36 loc) · 1.05 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
language: android
jdk: oraclejdk8
env:
# global variables
global:
- ANDROID_API_LEVEL=30
- ANDROID_BUILD_TOOLS_VERSION=30.0.0
- EMULATOR_API_LEVEL=30
- ANDROID_ABI=x86
android:
components:
- tools
- platform-tools
# The BuildTools version used by your project
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
# The SDK version used to compile your project
- android-$ANDROID_API_LEVEL
# Emulator config: system image
#- sys-img-${ANDROID_ABI}-android-${ANDROID_API_LEVEL}
before_install:
# Accept all sdk licenses
yes | sdkmanager "platforms;android-${ANDROID_API_LEVEL}"
#
# TODO: get emulator running on travis
#
before_script:
# list the target ids
#- android list target
# Emulator Management: Create, Start
#- echo no | android create avd --force -n test -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI -c 100M
#- emulator -avd test -no-audio -no-window &
# wait for emulator
#- android-wait-for-emulator
script:
# Run assemble and unit tests
- ./gradlew clean build # connectedCheck