-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (45 loc) · 1.25 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
53
54
# ./travis.yml for adal android
language: android
jdk:
- oraclejdk8
# Don't use the Travis Container-Based Infrastructure
sudo: true
android:
components:
# Travis has a bug that we need to workaround to use sdk 25
# https://github.com/travis-ci/travis-ci/issues/6059
- tools
- tools
- platform-tools
- build-tools-25.0.0
- android-25
- extra
- extra-android-m2repository
- extra-google-m2repository
- addon-google_apis-google-21
#system images
- sys-img-armeabi-v7a-addon-google_apis-google-21
env:
global:
# This is to guaratee a clean gradle log
- TERM=dumb
matrix:
- ANDROID_SDKS=android-25 ANDROID_TARGET=android-25
before_install:
- chmod +x gradlew
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
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 &
script:
- cd $PWD
- ./gradlew clean build connectedAndroidTest -PdisablePreDex