| language: java |
| jdk: |
| - oraclejdk7 |
| before_install: |
| # Make sure apt is up to date. |
| - sudo apt-get update -qq |
| # Travis is on 64bit and there will be a cryptic aapt error w/o these libs. |
| - if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch > /dev/null; fi |
| # Download the Android sdk and unzip. |
| - wget http://dl.google.com/android/android-sdk_r22.2.1-linux.tgz |
| - tar -zxf android-sdk_r22.2.1-linux.tgz |
| # Set up the sdk environment. |
| - export ANDROID_HOME=`pwd`/android-sdk-linux |
| - export PATH=${PATH}:${ANDROID_HOME}/tools |
| - export PATH=${PATH}:${ANDROID_HOME}/platform-tools |
| - export PATH=${PATH}:${ANDROID_HOME}/build-tools |
| # Install the sdk bits we need. |
| - ./scripts/travisci_install_android_sdk.sh > /dev/null |
| # Download the Android ndk and unzip. |
| - wget http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2 |
| - tar xf android-ndk-r9-linux-x86_64.tar.bz2 |
| - mv android-ndk-r9 android-ndk-linux |
| # Set up the ndk environment. |
| - export ANDROID_NDK=`pwd`/android-ndk-linux |
| - export PATH=${ANDROID_NDK}:${PATH} |