-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
33 lines (31 loc) · 1.13 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
language: android
sudo: required
jdk: oraclejdk8
android:
components:
- tools # to get the new `repository-11.xml`
- platform-tools
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
licenses:
- 'android-sdk-license-.+'
- 'android-sdk-preview-license-.+'
- 'google-gdk-license-.+'
before_install:
# the whole licensing is messed up...
- mkdir "$ANDROID_HOME/licenses" || true
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"
# install tools etc. separately because it does not work otherwise, dont know why
- sdkmanager tools
- sdkmanager "system-images;android-19;default;armeabi-v7a"
# create & start emulator
- echo no | avdmanager create avd --force -n test -k "system-images;android-19;default;armeabi-v7a"
- $ANDROID_HOME/emulator/emulator -avd test -no-audio -no-window &
- chmod +x gradlew
- ./gradlew dependencies || true
before_script:
- android-wait-for-emulator
- adb shell input keyevent 82 &
install: ./gradlew clean
script: ./gradlew connectedDebugAndroidTest
notifications:
email: false