Files
yoga/.travis.yml

59 lines
1.5 KiB
YAML
Raw Normal View History

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