forked from simpligility/android-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (37 loc) · 1.2 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
sudo: false
cache:
directories:
- $HOME/.m2
jdk: oraclejdk7
language: android
android:
components:
- tools
- tools # https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943
- platform-tools
- android-19
- android-22
- android-23
- build-tools-22.0.0
- build-tools-22.0.1
- build-tools-21.1.2
- build-tools-23.0.1
- sys-img-armeabi-v7a-android-22
- extra-android-m2repository
before_script:
# Create and start emulator
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
# Install Android NDK 10b
# Note: There is now a difference between Target architecture and Platform architecture. What SHOULD they be?
- NDK_ARCH=""
- NDK_PLAT="32"
- if [ `uname -m` = x86_64 ]; then NDK_ARCH=_64; NDK_PLAT=32; fi
- FILE="android-ndk${NDK_PLAT}-r10b-linux-x86${NDK_ARCH}.tar.bz2"
- wget http://dl.google.com/android/ndk/${FILE}
- tar xjf ${FILE}
- export ANDROID_NDK_HOME=$PWD/android-ndk-r10b
# Make sure the emulator is running.
- android-wait-for-emulator
- adb shell input keyevent 82 &
script: mvn clean install -Dandroid.device=test -P it -B -U