|
1 |
| -language: java |
2 |
| -jdk: oraclejdk7 |
3 | 1 | env: ANDROID_SDK=android-16 ANDROID_ABI=armeabi-v7a
|
| 2 | +language: android |
| 3 | +android: |
| 4 | + components: |
| 5 | + # The SDK version used to compile your project |
| 6 | + - $ANDROID_SDK |
4 | 7 |
|
5 |
| -before_install: |
6 |
| - # Install ia32-libs (necessary for Android SDK to run on 64-bit linux) |
7 |
| - # - sudo apt-get clean && sudo apt-get update |
8 |
| - - sudo apt-get update -qq |
9 |
| - - sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch |
| 8 | + # Additional components |
| 9 | + - extra-google-m2repository |
| 10 | + - extra-android-m2repository |
| 11 | + - extra-android-support |
10 | 12 |
|
11 |
| - # Install Android SDK |
12 |
| - - wget http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz |
13 |
| - - tar -zxf android-sdk_r22.6.2-linux.tgz |
14 |
| - - ls |
15 |
| - - export ANDROID_HOME=`pwd`/android-sdk-linux |
16 |
| - - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools |
| 13 | + # Specify at least one system image, |
| 14 | + # if you need to run emulator(s) during your tests |
| 15 | + - sys-img-$ANDROID_ABI-$ANDROID_SDK |
17 | 16 |
|
18 |
| - # Install build-tools |
19 |
| - - wget https://dl-ssl.google.com/android/repository/build-tools_r19.0.3-linux.zip |
20 |
| - - unzip build-tools_r19.0.3-linux.zip -d $ANDROID_HOME |
21 |
| - - mkdir -p $ANDROID_HOME/build-tools/ |
22 |
| - - mv $ANDROID_HOME/android-4.4.2 $ANDROID_HOME/build-tools/19.0.1 |
| 17 | + licenses: |
| 18 | + - 'android-sdk-license-.+' |
23 | 19 |
|
24 |
| - # Install required Android components |
25 |
| - - android list sdk --extended |
26 |
| - # Do you accept the license 'android-sdk-license-bcbbd656' [y/n]: |
27 |
| - - echo -ne "y\n" | android update sdk --filter system-image,platform-tools,extra-android-support,$ANDROID_SDK --no-ui --force |
28 |
| - |
29 |
| - # Create and start emulator |
| 20 | +before_script: |
30 | 21 | - echo no | android create avd --force -n test -t $ANDROID_SDK --abi $ANDROID_ABI
|
31 | 22 | - android list avds
|
32 | 23 | - emulator -avd test -no-skin -no-audio -no-window &
|
| 24 | + - android-wait-for-emulator |
| 25 | + - adb shell input keyevent 82 & |
| 26 | + - mvn --version |
33 | 27 |
|
34 |
| -before_script: |
35 |
| - # Make sure the emulator has started before running tests |
36 |
| - - chmod +x ./wait_for_emulator |
37 |
| - - ./wait_for_emulator |
38 |
| - |
39 |
| -script: |
40 |
| - - mvn clean install -e |
| 28 | +script: mvn clean install |
0 commit comments