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