Install android sdk

This commit is contained in:
Leith Bade
2014-11-06 01:22:40 +11:00
parent 18d5501279
commit aebd3fdca5
2 changed files with 14 additions and 0 deletions

View File

@@ -29,7 +29,9 @@ before_install:
- source ./scripts/travis_helper.sh
- source ./scripts/flags.sh
- export ANDROID_NDK_PATH="$(pwd)/android-ndk-r10c"
- export NDK_HOME="$(pwd)/android-ndk-r10c"
- export JAVA_HOME="$(pwd)/jdk1.7.0_71"
- export ANDROID_HOME="$(pwd)/android-sdk-linux"
- ./scripts/travis_before_install.sh
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then export LD_LIBRARY_PATH=`mason prefix mesa 10.3.1`/lib; fi
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then glxinfo; fi

View File

@@ -30,6 +30,18 @@ if [[ "${MASON_PLATFORM}" == "android" ]]; then
echo "debug: unpacking JDK"
#mapbox_time "unpacking JDK" \
tar -xzf ./jdk-7u71-linux-x64.tar.gz
echo "debug: fetching SDK"
#mapbox_time "fetching SDK" \
wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
echo "debug: unpacking SDK"
#mapbox_time "unpacking SDK" \
tar -xzf ./android-sdk_r23.0.2-linux.tgz
echo "debug: installing SDK"
#mapbox_time "installing SDK" \
echo y | ./android-sdk-linux/tools/android update sdk -u -a -t tools,platform-tools,build-tools-21.1.0,android-19
fi
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then