From a14bbc04212b4eda2599180723ac994b37c723d1 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Tue, 25 Sep 2018 04:06:10 -0700 Subject: [PATCH] Fixes travis (#280) Summary: - [x] Don't harcode simulator - [x] Remove podfile.lock - [x] Test swift project too - [x] Silent logs Pull Request resolved: https://github.com/facebook/flipper/pull/280 Reviewed By: passy Differential Revision: D10013242 Pulled By: priteshrnandgaonkar fbshipit-source-id: 0a6d4f43914f944c2c1b95399ffa4dbee64c9f26 --- .travis.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c6f546d26..00ebaf080 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,18 +41,37 @@ matrix: - language: objective-c before_install: - - pod repo update + - rm -rf iOS/Sample/Pods + - rm -f iOS/Sample/Podfile.lock + - rm -f iOS/SampleSwift/Podfile.lock + - pod repo update --silent install: - cd iOS/Sample - - pod install + - rm -f Podfile.lock + - pod install --silent - cd ../../ script: - cd iOS/Sample - - xcodebuild -showsdks - - xcodebuild clean build -workspace Sample.xcworkspace -scheme Sample -sdk iphonesimulator11.4 + - IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$") + - xcodebuild clean build -workspace Sample.xcworkspace -scheme Sample -sdk $IPHONESIMULATOR -quiet + - language: objective-c + before_install: + - rm -rf iOS/SampleSwift/Pods + - rm -f iOS/SampleSwift/Podfile.lock + - pod repo update --silent + + install: + - cd iOS/SampleSwift + - rm -f Podfile.lock + - pod install --silent + - cd ../../ + script: + - cd iOS/SampleSwift + - IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$") + - xcodebuild clean build -workspace SampleSwift.xcworkspace -scheme SampleSwift -sdk $IPHONESIMULATOR -quiet - language: android os: linux android: