forked from bugsnag/bugsnag-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (43 loc) · 1.36 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
language: android
android:
components:
- tools
- platform-tools
- build-tools-27.0.0
- android-16
- android-19
- android-21
- android-27
- extra-android-m2repository
- sys-img-armeabi-v7a-android-16
- sys-img-armeabi-v7a-android-19
- sys-img-armeabi-v7a-android-21
env:
matrix:
- ANDROID_TARGET=android-16 ANDROID_ABI=armeabi-v7a
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
global:
- ADB_INSTALL_TIMEOUT=5 # increase from default of 2 mins
# see https://github.com/travis-ci/travis-ci/issues/8874
before_install:
- yes | sdkmanager "platforms;android-27"
before_script:
# Create and start emulator
- android list targets
- jdk_switcher use oraclejdk8
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- adb wait-for-device
- while [[ `adb shell pm path android` == 'Error'* ]]; do sleep 2; done
- adb shell input keyevent 82 &
script: ./gradlew lint connectedCheck
sudo: false
before_deploy: ./gradlew javadoc
deploy:
provider: pages
local_dir: sdk/docs # only include the contents of the docs dir
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
tags: true # only deploy when tag is applied to commit