Files
yoga/.travis.yml
Emil Sjolander abf142ea3f Fix more travis file errors
Summary: and add badges to readme

Reviewed By: passy

Differential Revision: D4551571

fbshipit-source-id: c6eafe480e3667252eadc96c548c3b3c85046389
2017-02-13 09:41:35 -08:00

86 lines
1.7 KiB
YAML

# 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
env:
- TARGET=c
- TARGET=java
- TARGET=net
- TARGET=ios
- TARGET=js
before_install:
- brew update
- brew tap facebook/fb
- brew install buck
# Java
- |
if [[ $TARGET = "java" ]]; then
brew cask install java;
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8);
export PATH=$JAVA_HOME/bin:$PATH;
fi
# .NET
- |
if [[ $TARGET = "net" ]]; then
brew install mono;
fi
# iOS
- |
if [[ $TARGET = "ios" ]]; then
brew upgrade xctool;
fi
# JavaScript
- |
if [[ $TARGET = "js" ]]; then
cd javascript;
npm install;
fi
script:
# C
- |
if [[ $TARGET = "c" ]]; then
buck test --verbose 0 //:yoga;
buck run --verbose 0 //benchmark:benchmark;
git checkout HEAD^;
buck run --verbose 0 //benchmark:benchmark;
fi
# Java
- |
if [[ $TARGET = "java" ]]; then
buck test --verbose 0 //java:java;
fi
# .NET
- |
if [[ $TARGET = "net" ]]; then
sh csharp/tests/Facebook.Yoga/test_macos.sh;
fi
# iOS
- |
if [[ $TARGET = "ios" ]]; then
buck test --verbose 0 //YogaKit:YogaKitTests --config cxx.default_platform=iphonesimulator-x86_64;
fi
# JavaScript
- |
if [[ $TARGET = "js" ]]; then
npm run test:all;
npm run bench;
fi