-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (40 loc) · 1.23 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
language: android
jdk:
- oraclejdk8
android:
components:
- tools
- platform-tools
- android-26
- android-25
- android-23
- build-tools-26.0.0
- build-tools-25.0.3
- build-tools-25.0.2
- extra-android-m2repository
# as per http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
#sudo: false
sudo: true
# script for build and release via Travis to Bintray
# script: gradle/buildViaTravis.sh
before_install:
- chmod +x gradlew
notifications:
email: false
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
# cache between builds
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches
- $HOME/.gradle/wrapper
# https://stackoverflow.com/questions/38096225/automatically-accept-all-sdk-licences
# - mkdir -p "$ANDROID_SDK/licenses"
# - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_SDK/licenses/android-sdk-license"
# - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_SDK/licenses/android-sdk-preview-license"
before_script:
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &