language: java
jdk: oraclejdk7

env:
  - GRADLE_VERSION="1.11"
  - GRADLE_HOME=$PWD/gradle-$GRADLE_VERSION
  - ANDROID_SDK_VERSION="22.6"
  - ANDROID_HOME=$PWD/android-sdk-linux
  - PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$GRADLE_HOME/bin:$PATH
  - TERM=dumb

before_install:
  # Install required libraries
  - sudo apt-get update
  - sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch
  # Install compatible Gradle version
  - wget http://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip
  - unzip -qq gradle-$GRADLE_VERSION-bin.zip
  - chmod +x gradlew
  # Install Android SDK
  - wget http://dl.google.com/android/android-sdk_r$ANDROID_SDK_VERSION-linux.tgz
  - tar -zxf android-sdk_r$ANDROID_SDK_VERSION-linux.tgz
  # Manually set sdk.dir variable
  - echo "sdk.dir=$ANDROID_HOME" > local.properties
  # Install extra libraries and SDKs
  - echo y | android update sdk -a -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-19,build-tools-19.0.1,extra-google-google_play_services,extra-google-m2repository --force --no-ui

language: java
jdk: oraclejdk7

env:
  - GRADLE_VERSION="1.11" GRADLE_HOME=$PWD/gradle-$GRADLE_VERSION ANDROID_SDK_VERSION="22.6" ANDROID_HOME=$PWD/android-sdk-linux PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$GRADLE_HOME/bin:$PATH TERM=dumb

before_install:
  # Install required libraries
  - sudo apt-get update
  - sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch
  # Install compatible Gradle version
  - wget http://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip
  - unzip -qq gradle-$GRADLE_VERSION-bin.zip
  - chmod +x gradlew
  # Install Android SDK
  - wget http://dl.google.com/android/android-sdk_r$ANDROID_SDK_VERSION-linux.tgz
  - tar -zxf android-sdk_r$ANDROID_SDK_VERSION-linux.tgz
  # Manually set sdk.dir variable
  - echo "sdk.dir=$ANDROID_HOME" > local.properties
  # Install extra libraries and SDKs
  - echo y | android update sdk -a -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-19,build-tools-19.0.1,extra-google-google_play_services,extra-google-m2repository --force --no-ui

Configure only a single environment build
Configure only a single environment build
