From 450472766d4063010bf1d3ba4b1208118dd9f753 Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Wed, 10 Aug 2016 08:27:40 -0700 Subject: [PATCH] Fix travis build Summary: Building on osx machines makes things a lot easier. Differential Revision: D3693987 fbshipit-source-id: f6e2599f99a3fd4ac6fb2a6efd5563074da707d0 --- .travis.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 57a540cb..8576dac7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,22 @@ -language: - - c - - java +# 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 -install: - - git clone https://github.com/facebook/buck.git /home/ubuntu/buck - - cd /home/ubuntu/buck && ant - - buck --version +before_install: + - brew update + - brew tap facebook/fb + - brew install buck + - brew outdated xctool || brew upgrade xctool script: - buck test //:CSSLayout - buck test //:CSSLayout_java - - buck run //:CSSLayout:benchmark + - buck run //:benchmark