Travis build of sample app

Summary: Build the sample app in travis

Reviewed By: emilsjolander

Differential Revision: D4558310

fbshipit-source-id: b730a7bc9036054a17c6204a93c63ea2064e0943
This commit is contained in:
Robert Spencer
2017-02-14 08:28:36 -08:00
committed by Facebook Github Bot
parent a66339d63c
commit ad3963daa6

View File

@@ -16,6 +16,7 @@ env:
- TARGET=net
- TARGET=ios
- TARGET=js
- TARGET=android
before_install:
- brew update
@@ -49,6 +50,15 @@ before_install:
npm install;
fi
# Android
- |
if [[ $TARGET = "android" ]]; then
brew cask install java;
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8);
export PATH=$JAVA_HOME/bin:$PATH;
brew install android-sdk;
fi
script:
# C
- |
@@ -83,3 +93,9 @@ script:
npm run test:all &&
npm run bench;
fi
# Android
- |
if [[ $TARGET = "android" ]]; then
buck build --verbose 0 //android/sample:sample
fi