-
-
Save goghvanmr/5727566 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
jdk: oraclejdk6 | |
env: | |
matrix: | |
- ANDROID_TARGET=android-8 ANDROID_SDKS=android-8,build-tools-17.0.0 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi | |
- ANDROID_TARGET=android-10 ANDROID_SDKS=android-10,build-tools-17.0.0,sysimg-10 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi | |
- ANDROID_TARGET=android-15 ANDROID_SDKS=android-15,build-tools-17.0.0,sysimg-15 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi-v7a | |
- ANDROID_TARGET=android-17 ANDROID_SDKS=android-17,build-tools-17.0.0,sysimg-17 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi-v7a | |
before_install: | |
# Install base Android SDK | |
- sudo apt-get update -qq | |
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi | |
- wget http://dl.google.com/android/android-sdk_r22-linux.tgz | |
- tar xzf android-sdk_r22-linux.tgz | |
- export ANDROID_HOME=`pwd`/android-sdk-linux | |
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/build-tools/$ANDROID_BUILD_TOOLS_VERSION | |
# Install required Android components. | |
- android list sdk --extended | |
# Do you accept the license 'android-sdk-license-bcbbd656' [y/n]: | |
- echo -e "y\n" > accept.txt | |
- android update sdk --filter platform-tools,extra-android-support,$ANDROID_SDKS --no-ui --force < accept.txt | |
# PROVISIONAL: changed SDKr22 build-tools path. create symbolic link | |
- if [ ! -e ${ANDROID_HOME}/platform-tools/aapt ]; then ln -s ${ANDROID_HOME}/build-tools/$ANDROID_BUILD_TOOLS_VERSION/aapt ${ANDROID_HOME}/platform-tools/aapt; fi | |
- if [ ! -e ${ANDROID_HOME}/platform-tools/aidl ]; then ln -s ${ANDROID_HOME}/build-tools/$ANDROID_BUILD_TOOLS_VERSION/aidl ${ANDROID_HOME}/platform-tools/aidl; fi | |
# Create and start emulator | |
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI | |
- emulator -avd test -no-skin -no-audio -no-window & | |
before_script: | |
# Make sure the emulator has started before running tests | |
- chmod +x ./wait_for_emulator | |
- ./wait_for_emulator | |
script: mvn install -Pintegration-tests -Dandroid.device=test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- chmod +x ./wait_for_emulator | |
- ./wait_for_emulator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script: mvn install -Pintegration-tests -Dandroid.device=test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
jdk: oraclejdk6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
matrix: | |
- ANDROID_TARGET=android-8 ANDROID_SDKS=android-8,build-tools-17.0.0 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi | |
- ANDROID_TARGET=android-10 ANDROID_SDKS=android-10,build-tools-17.0.0,sysimg-10 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi | |
- ANDROID_TARGET=android-15 ANDROID_SDKS=android-15,build-tools-17.0.0,sysimg-15 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi-v7a | |
- ANDROID_TARGET=android-17 ANDROID_SDKS=android-17,build-tools-17.0.0,sysimg-17 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi-v7a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- sudo apt-get update -qq | |
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- wget http://dl.google.com/android/android-sdk_r22-linux.tgz | |
- tar xzf android-sdk_r22-linux.tgz | |
- export ANDROID_HOME=`pwd`/android-sdk-linux | |
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/build-tools/$ANDROID_BUILD_TOOLS_VERSION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------- | |
id: 1 or "platform-tools" | |
Type: PlatformTool | |
Desc: Android SDK Platform-tools, revision 17 | |
---------- | |
id: 2 or "build-tools-17.0.0" | |
Type: BuildTool | |
Desc: Android SDK Build-tools, revision 17 | |
---------- | |
(~省略~) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- echo -e "y\n" > accept.txt | |
- android update sdk --filter platform-tools,extra-android-support,$ANDROID_SDKS --no-ui --force < accept.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if [ ! -e ${ANDROID_HOME}/platform-tools/aapt ]; then ln -s ${ANDROID_HOME}/build-tools/$ANDROID_BUILD_TOOLS_VERSION/aapt ${ANDROID_HOME}/platform-tools/aapt; fi | |
- if [ ! -e ${ANDROID_HOME}/platform-tools/aidl ]; then ln -s ${ANDROID_HOME}/build-tools/$ANDROID_BUILD_TOOLS_VERSION/aidl ${ANDROID_HOME}/platform-tools/aidl; fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI | |
- emulator -avd test -no-skin -no-audio -no-window & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bootanim="" | |
failcounter=0 | |
until [[ "$bootanim" =~ "stopped" ]]; do | |
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1` | |
echo "$bootanim" | |
if [[ "$bootanim" =~ "not found" ]]; then | |
let "failcounter += 1" | |
if [[ $failcounter -gt 3 ]]; then | |
echo "Failed to start emulator" | |
exit 1 | |
fi | |
fi | |
sleep 1 | |
done | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment