language: scala
jdk:
  - oraclejdk7
  - openjdk7

language: scala
jdk:
  - oraclejdk7
  - openjdk7
env:
  matrix:
  - ANDROID_SDKS=sysimg-19            ANDROID_TARGET=android-19  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_r21.0.1-linux.tgz
    - tar xzf android-sdk_r21.0.1-linux.tgz
    - export ANDROID_HOME=$PWD/android-sdk-linux
    - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools

    # Install required Android components.
    - android update sdk --filter platform-tools,android-19,extra-android-support,$ANDROID_SDKS --no-ui --force

    # 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
    #- ./wait_for_emulator

Install Android SDK before running Travis build
Install Android SDK before running Travis build
