Fix travis builds

Summary: && instead of ; and only update xctools if needed

Reviewed By: passy

Differential Revision: D4558044

fbshipit-source-id: 90d55bf0147026e527b238365835d803a4bee7fb
This commit is contained in:
Emil Sjolander
2017-02-14 02:27:44 -08:00
committed by Facebook Github Bot
parent a580712b2f
commit b587ecb30f

View File

@@ -39,7 +39,7 @@ before_install:
# iOS
- |
if [[ $TARGET = "ios" ]]; then
brew upgrade xctool;
brew outdated xctool || brew upgrade xctool;
fi
# JavaScript
@@ -53,9 +53,9 @@ script:
# C
- |
if [[ $TARGET = "c" ]]; then
buck test --verbose 0 //:yoga;
buck run --verbose 0 //benchmark:benchmark;
git checkout HEAD^;
buck test --verbose 0 //:yoga &&
buck run --verbose 0 //benchmark:benchmark &&
git checkout HEAD^ &&
buck run --verbose 0 //benchmark:benchmark;
fi
@@ -80,6 +80,6 @@ script:
# JavaScript
- |
if [[ $TARGET = "js" ]]; then
npm run test:all;
npm run test:all &&
npm run bench;
fi