From dcff4d3db2ddf1d7f196b3e21e6b153c836d0928 Mon Sep 17 00:00:00 2001 From: Maxime Ollivier Date: Wed, 15 Mar 2017 09:05:40 -0700 Subject: [PATCH] Update .travis.yml to build iOS sample project Summary: Closes https://github.com/facebook/yoga/pull/481 Differential Revision: D4713645 Pulled By: emilsjolander fbshipit-source-id: b51eded585b59f50471e01271aabb5672b0682b1 --- .travis.yml | 10 +- .../xcschemes/YogaKitSample.xcscheme | 101 ++++++++++++++++++ 2 files changed, 109 insertions(+), 2 deletions(-) create mode 100644 YogaKit/YogaKitSample/YogaKitSample.xcodeproj/xcshareddata/xcschemes/YogaKitSample.xcscheme diff --git a/.travis.yml b/.travis.yml index 9455dc46..33df95b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,11 @@ before_install: # iOS - | if [[ $TARGET = "ios" ]]; then - brew outdated xctool || brew upgrade xctool + brew outdated xctool || brew upgrade xctool; + gem install xcpretty --no-document --quiet; + gem install cocoapods --pre --no-document --quiet; + pod repo update --silent; + pod install --project-directory=YogaKit/YogaKitSample/; fi # Emscripten (used for js tests) @@ -102,7 +106,9 @@ script: # iOS - | if [[ $TARGET = "ios" ]]; then - buck test --verbose 0 //YogaKit:YogaKitTests --config cxx.default_platform=iphonesimulator-x86_64 + buck test --verbose 0 //YogaKit:YogaKitTests --config cxx.default_platform=iphonesimulator-x86_64 && + set -o pipefail && + xcodebuild build -workspace YogaKit/YogaKitSample/YogaKitSample.xcworkspace -scheme YogaKitSample -sdk iphonesimulator | xcpretty -c fi # Android diff --git a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/xcshareddata/xcschemes/YogaKitSample.xcscheme b/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/xcshareddata/xcschemes/YogaKitSample.xcscheme new file mode 100644 index 00000000..ca552e2b --- /dev/null +++ b/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/xcshareddata/xcschemes/YogaKitSample.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +