-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
56 lines (46 loc) · 1.71 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
55
56
language: android
# Turn off caching to avoid any caching problems
cache: false
# Use the Travis Container-Based Infrastructure
sudo: required
dist: precise
android:
components:
- build-tools-23.0.2
- android-22
- android-23
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
- addon-google_apis-google-19
- sys-img-armeabi-v7a-android-22
licenses:
- android-sdk-license-.+
env:
global:
- ADB_INSTALL_TIMEOUT=8
before_script:
- "echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null"
- "echo yes | android update sdk --filter android-23 --no-ui --force > /dev/null"
- echo yes | android update sdk --no-ui --all --filter build-tools-23.0.1
- "echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null"
- "echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null"
- "export NDK_VERSION=r10e"
- curl -L http://dl.google.com/android/ndk/android-ndk-${NDK_VERSION}-linux-x86_64.bin -O
- chmod u+x android-ndk-${NDK_VERSION}-linux-x86_64.bin
- ./android-ndk-${NDK_VERSION}-linux-x86_64.bin > /dev/null
- rm android-ndk-${NDK_VERSION}-linux-x86_64.bin
- export ANDROID_NDK_HOME=`pwd`/android-ndk-${NDK_VERSION}
- export PATH=${ANDROID_NDK_HOME}:${PATH}
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- ./gradlew clean build connectedCheck
after_success:
- bash <(curl -s https://codecov.io/bash)
branches:
only:
- master