2016-08-10 08:27:40 -07:00
|
|
|
# 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.
|
2016-08-02 08:07:04 -07:00
|
|
|
|
2016-08-10 08:27:40 -07:00
|
|
|
os: osx
|
2017-01-23 19:33:24 -08:00
|
|
|
osx_image: xcode8.2
|
2016-08-10 08:27:40 -07:00
|
|
|
language: cpp
|
2016-08-02 08:07:04 -07:00
|
|
|
compiler: clang
|
|
|
|
|
2016-08-10 08:27:40 -07:00
|
|
|
before_install:
|
|
|
|
- brew update
|
|
|
|
- brew tap facebook/fb
|
|
|
|
- brew install buck
|
2016-11-15 06:24:51 -08:00
|
|
|
- brew cask install java
|
2016-08-10 08:27:40 -07:00
|
|
|
- brew outdated xctool || brew upgrade xctool
|
2016-11-11 09:04:31 -08:00
|
|
|
- brew install mono
|
2017-01-02 02:22:45 -08:00
|
|
|
|
2016-11-15 06:24:51 -08:00
|
|
|
- export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
|
|
|
|
- export PATH=$JAVA_HOME/bin:$PATH
|
2016-08-02 08:07:04 -07:00
|
|
|
|
2017-01-02 02:22:45 -08:00
|
|
|
install:
|
|
|
|
- cd javascript
|
|
|
|
- npm install
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
|
2016-08-02 08:07:04 -07:00
|
|
|
script:
|
2016-12-07 05:12:11 -08:00
|
|
|
- buck test //:yoga
|
2016-10-12 09:02:02 -07:00
|
|
|
- buck test //java:java
|
2017-01-23 19:35:40 -08:00
|
|
|
- buck test //YogaKit:YogaKitTests --config cxx.default_platform=iphonesimulator-x86_64
|
2016-12-02 11:18:16 -08:00
|
|
|
- sh csharp/tests/Facebook.Yoga/test_macos.sh
|
2017-01-02 02:22:45 -08:00
|
|
|
|
|
|
|
- cd javascript
|
|
|
|
- npm run test:all
|
|
|
|
- npm run bench
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
|
2016-11-17 04:32:45 -08:00
|
|
|
- buck run //benchmark:benchmark
|
2016-08-11 11:48:52 -07:00
|
|
|
- git checkout HEAD^
|
2016-11-17 04:32:45 -08:00
|
|
|
- buck run //benchmark:benchmark
|