-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
43 lines (36 loc) · 1019 Bytes
/
.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
sudo: false
language: android
jdk:
- oraclejdk8
# https://github.com/travis-ci/travis-ci/issues/3695
env:
global:
MALLOC_ARENA_MAX=2
android:
components:
- tools
- platform-tools
- build-tools-29.0.3
- android-29
- extra-google-m2repository
- extra-android-m2repository
- android-24
- sys-img-armeabi-v7a-android-24
licenses:
- '.+'
before_install:
- yes | sdkmanager "platforms;android-29"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_script:
- echo no | android create avd --force --name test --tag default --target android-24 --abi armeabi-v7a
- emulator -avd test -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- curl -o file.apk "https://dl.bintray.com/linkedin/maven/com/linkedin/testbutler/test-butler-app/1.0.1/test-butler-app-1.0.1.apk" && adb install file.apk
script:
- ./gradlew build connectedCheck