language: generic
env:
    global:
        - ADB_INSTALL_TIMEOUT=8 # minutes (2 minutes by default)

matrix:
    include:
        - os: linux
          language: android
          env: ANDROID_TARGET=android-15
        - os: linux
          language: android
          env: ANDROID_TARGET=android-16
        - os: linux
          language: android
          env: ANDROID_TARGET=android-19
        - os: osx
          osx_image: xcode7.3
          language: objective-c
          env: CI_IOS_TESTS=true J2OBJC_VERSION=1.1 J2OBJC_HOME=/tmp/j2objc-$J2OBJC_VERSION

android:
  components:
    - tools
    - build-tools-24.0.2
    - android-15
    - sys-img-armeabi-v7a-android-15
    - android-16
    - sys-img-armeabi-v7a-android-16
    - android-19
    - sys-img-armeabi-v7a-android-19
    - android-24
    - sys-img-armeabi-v7a-android-24
    - extra-android-m2repository

before_script:
    - ./scripts/before-test.sh
script:
    - ./scripts/run-tests.sh

language: generic
env:
    global:
        - ADB_INSTALL_TIMEOUT=8 # minutes (2 minutes by default)

matrix:
    include:
        - os: linux
          language: android
          jdk: oraclejdk8
          env: ANDROID_TARGET=android-15
        - os: linux
          language: android
          jdk: oraclejdk8
          env: ANDROID_TARGET=android-16
        - os: linux
          language: android
          jdk: oraclejdk8
          env: ANDROID_TARGET=android-19
        - os: osx
          osx_image: xcode7.3
          language: objective-c
          env: CI_IOS_TESTS=true J2OBJC_VERSION=1.1 J2OBJC_HOME=/tmp/j2objc-$J2OBJC_VERSION

android:
  components:
    - tools
    - build-tools-24.0.2
    - android-15
    - sys-img-armeabi-v7a-android-15
    - android-16
    - sys-img-armeabi-v7a-android-16
    - android-19
    - sys-img-armeabi-v7a-android-19
    - android-24
    - sys-img-armeabi-v7a-android-24
    - extra-android-m2repository

before_script:
    - ./scripts/before-test.sh
script:
    - ./scripts/run-tests.sh

Build tools 24.0.2 requires java 8
Build tools 24.0.2 requires java 8
