-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
53 lines (44 loc) · 1.52 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
sudo: true
language: android
jdk: oraclejdk8
env:
global:
- GRADLE_OPTS='-Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dkotlin.incremental=false -DdisablePreDex'
- ANDROID_TARGET=android-28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
- ANDROID_EMULATOR_TARGET=android-22
- QEMU_AUDIO_DRV=none # sometimes the emulator audio causes trouble
- ADB_INSTALL_TIMEOUT=5 # minutes
android:
components:
- tools
- tools
- platform-tools
- emulator
- emulator
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- $ANDROID_TARGET
- $ANDROID_EMULATOR_TARGET
- extra-google-google_play_services
- extra-android-support
- extra
- sys-img-$ANDROID_ABI-$ANDROID_EMULATOR_TARGET
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo yes | sdkmanager "platforms;$ANDROID_TARGET" "build-tools;$ANDROID_BUILD_TOOLS_VERSION"
before_script:
- echo $gpgdata > ./key.gpg
script:
- echo no | android create avd --force -n testdevice -t $ANDROID_EMULATOR_TARGET --abi $ANDROID_ABI --device "Nexus 5"
- emulator -avd testdevice -gpu swiftshader -no-audio -no-window -skin 1080x1920 &
- ./gradlew check
- android-wait-for-emulator
- adb shell input keyevent 82 &
- ./gradlew :samples:connectedAndroidTest