dist: xenial
sudo: required
# xcode8 has jdk8
osx_image: xcode8
# Not technically required but suppresses 'Ruby' in Job status message.
language: java

os:
  - linux
  - osx

before_install:
  - |
    if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
      OS=darwin
    else
      sysctl kernel.unprivileged_userns_clone=1
      OS=linux
    fi
    BAZEL=$(cat ".bazelversion")
    wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL}/bazel-${BAZEL}-installer-${OS}-x86_64.sh"
    chmod +x install.sh
    ./install.sh --user
    rm -f install.sh

before_script:
  - echo "startup --output_base=$HOME/.cache/bazel" >> .bazelrc
  # Avoid progress indicators that can blow out log which makes using WEB UI difficult
  - echo "common --noshow_progress" >> .bazelrc
  - echo "common --noshow_loading_progress" >> .bazelrc
  # This is so we understand failures better
  - echo "build --verbose_failures" >> .bazelrc

script: ./bazel_build_test.sh

notifications:
  email: false

dist: xenial
sudo: required

# Not technically required but suppresses 'Ruby' in Job status message.
language: java

os:
  - linux
  - osx

before_install:
  - |
    if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
      OS=darwin
    else
      sysctl kernel.unprivileged_userns_clone=1
      OS=linux
    fi
    BAZEL=$(cat ".bazelversion")
    wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL}/bazel-${BAZEL}-installer-${OS}-x86_64.sh"
    chmod +x install.sh
    ./install.sh --user
    rm -f install.sh

before_script:
  - echo "startup --output_base=$HOME/.cache/bazel" >> .bazelrc
  # Avoid progress indicators that can blow out log which makes using WEB UI difficult
  - echo "common --noshow_progress" >> .bazelrc
  - echo "common --noshow_loading_progress" >> .bazelrc
  # This is so we understand failures better
  - echo "build --verbose_failures" >> .bazelrc

script: ./bazel_build_test.sh

notifications:
  email: false

Use default image for osx on Travis.
Use default image for osx on Travis.

xcode8 (macOS: 10.11, jdk:1.8.0_92-b14) is too old and is not compatible with Bazel 2.0.0+. The default config uses Xcode 9.4.1, macOS 10.13 and jdk 10.0.1+10 and works with Bazel 2.0.

PiperOrigin-RevId: 308727886
