sudo: required
dist: trusty
language: python

branches:
  except:
    - docker-integration
    - docker-test

env:
  global:
    - ANDROID_SDK=3859397

matrix:
  fast_finish: true
  include:
    - os: linux
      python: 2.7
    - os: linux
      python: 3.3
    - os: linux
      python: 3.7-dev
    - os: osx
      language: cpp
      env: PY=/usr/bin/python2.7
  allow_failures:
    - os: osx
      language: cpp
      env: PY=/usr/bin/python2.7

before_install:
  - . travis/before_install.sh

install:
  - yes | "$ANDROID_HOME/tools/bin/sdkmanager" 'build-tools;26.0.3' 'platforms;android-24'
  - pip install -r travis/requirements.txt

script:
  - travis/script.sh

sudo: required
dist: trusty
language: python

branches:
  except:
    - docker-integration
    - docker-test

env:
  global:
    - ANDROID_SDK=4333796
    - JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'

jdk: oracalejdk9

matrix:
  fast_finish: true
  include:
    - os: linux
      python: 2.7
    - os: linux
      python: 3.3
    - os: linux
      python: 3.7-dev
    - os: osx
      language: cpp
      env: PY=/usr/bin/python2.7
  allow_failures:
    - os: osx
      language: cpp
      env: PY=/usr/bin/python2.7

before_install:
  - . travis/before_install.sh

install:
  - yes | "$ANDROID_HOME/tools/bin/sdkmanager" 'build-tools;28.0.2' 'platforms;android-28'
  - pip install -r travis/requirements.txt

script:
  - travis/script.sh

Update Java and Android SDKs
Update Java and Android SDKs

Update to Java 9 SDK and Android 9 ("Pie") SDK.
