# Copyright (c) 2014-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.

os: osx
osx_image: xcode7.3
language: cpp
compiler: clang

before_install:
  - brew update
  - brew tap facebook/fb
  - brew install buck
  - brew cask install java
  - brew outdated xctool || brew upgrade xctool
  - brew install mono

  - export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
  - export PATH=$JAVA_HOME/bin:$PATH

install:
  - cd javascript
  - npm install
  - cd $TRAVIS_BUILD_DIR

script:
  - buck test //:yoga
  - buck test //java:java
  - buck test //YogaKit:YogaKitTests --config cxx.default_platform=iphonesimulator-x86_64 --config cxx.cflags=-DTRAVIS_CI
  - sh csharp/tests/Facebook.Yoga/test_macos.sh

  - cd javascript
  - npm run test:all
  - npm run bench
  - cd $TRAVIS_BUILD_DIR

  - buck run //benchmark:benchmark
  - git checkout HEAD^
  - buck run //benchmark:benchmark

# Copyright (c) 2014-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.

os: osx
osx_image: xcode8.2
language: cpp
compiler: clang

before_install:
  - brew update
  - brew tap facebook/fb
  - brew install buck
  - brew cask install java
  - brew outdated xctool || brew upgrade xctool
  - brew install mono

  - export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
  - export PATH=$JAVA_HOME/bin:$PATH

install:
  - cd javascript
  - npm install
  - cd $TRAVIS_BUILD_DIR

script:
  - buck test //:yoga
  - buck test //java:java
  - buck test //YogaKit:YogaKitTests --config cxx.default_platform=iphonesimulator-x86_64 --config cxx.cflags=-DTRAVIS_CI
  - sh csharp/tests/Facebook.Yoga/test_macos.sh

  - cd javascript
  - npm run test:all
  - npm run bench
  - cd $TRAVIS_BUILD_DIR

  - buck run //benchmark:benchmark
  - git checkout HEAD^
  - buck run //benchmark:benchmark

Upgrade Travis to Xcode 8.2
Upgrade Travis to Xcode 8.2

Summary:
Doing this externally to trigger a Travis build. This will put our Travis infra on the newest Xcode.
Closes https://github.com/facebook/yoga/pull/353

Reviewed By: emilsjolander

Differential Revision: D4453795

Pulled By: dshahidehpour

fbshipit-source-id: 23416405fdd43486c934bea0b720c217fafd7f30
