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
This commit is contained in:
Pritesh Nandgaonkar
2018-09-25 04:06:10 -07:00
committed by Facebook Github Bot
parent c7b0d419cb
commit a14bbc0421

View File

@@ -41,18 +41,37 @@ matrix:
- language: objective-c - language: objective-c
before_install: 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: install:
- cd iOS/Sample - cd iOS/Sample
- pod install - rm -f Podfile.lock
- pod install --silent
- cd ../../ - cd ../../
script: script:
- cd iOS/Sample - cd iOS/Sample
- xcodebuild -showsdks - IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$")
- xcodebuild clean build -workspace Sample.xcworkspace -scheme Sample -sdk iphonesimulator11.4 - 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 - language: android
os: linux os: linux
android: android: