-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (45 loc) · 1.33 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
notifications:
email:
recipients:
on_success: change
on_failure: always
env:
global:
- ADB_INSTALL_TIMEOUT=8 # 8 minutes (2 minutes by default)
jdk:
- oraclejdk8
before_install:
- chmod +x gradlew
- cd $TRAVIS_BUILD_DIR/..
- wget https://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip -O ndk.zip
- chmod a+x ndk.zip
- unzip ndk.zip > /dev/null
- rm ndk.zip
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r12b
- export PATH=$PATH:$ANDROID_NDK_HOME
- echo $PATH
- wget https://github.com/Commit451/android-cmake-installer/releases/download/1.1.0/install-cmake.sh
- chmod +x install-cmake.sh
- ./install-cmake.sh
- cd $TRAVIS_BUILD_DIR/
android:
components:
- tools
- build-tools-24.0.2
- android-25
- extra-android-support
- extra-google-m2repository
- extra-android-m2repository
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 settings put global window_animation_scale 0 &
- adb shell settings put global transition_animation_scale 0 &
- adb shell settings put global animator_duration_scale 0 &
- adb shell input keyevent 82 &
script:
- ./gradlew checkstyle
- ./gradlew test