language: java
jdk: oraclejdk7

branches:
  only:
    - master
    - release

before_install:
  - SDK_TOOLS_VERSION=24.0.2
  - BUILD_TOOLS_VERSION=21.1.2
  - COMPILE_SDK_VERSION=21
  - 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
  # download the latest android sdk and unzip
  - wget https://dl.google.com/android/android-sdk_r$SDK_TOOLS_VERSION-linux.tgz
  - tar xzf android-sdk_r$SDK_TOOLS_VERSION-linux.tgz
  - export ANDROID_HOME=`pwd`/android-sdk-linux
  - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
  - echo "y" | android update sdk --filter platform-tools,build-tools-$BUILD_TOOLS_VERSION,android-$COMPILE_SDK_VERSION,extra-android-support,extra-android-m2repository,extra-google-m2repository --no-ui --obsolete --force

language: java
jdk: oraclejdk7

branches:
  only:
    - master
    - develop

before_install:
  - SDK_TOOLS_VERSION=24.0.2
  - BUILD_TOOLS_VERSION=21.1.2
  - COMPILE_SDK_VERSION=21
  - 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
  # download the latest android sdk and unzip
  - wget https://dl.google.com/android/android-sdk_r$SDK_TOOLS_VERSION-linux.tgz
  - tar xzf android-sdk_r$SDK_TOOLS_VERSION-linux.tgz
  - export ANDROID_HOME=`pwd`/android-sdk-linux
  - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
  - echo "y" | android update sdk --filter platform-tools,build-tools-$BUILD_TOOLS_VERSION,android-$COMPILE_SDK_VERSION,extra-android-support,extra-android-m2repository,extra-google-m2repository --no-ui --obsolete --force

Build only master and develop
Build only master and develop
