Files
flipper/.travis.yml
Pritesh Nandgaonkar a2c43653cf Update podfile for Cocoapods 1.9 (#892)
Summary:
Updates the instructions to integrate iOS pods for the case with the usage of `use_frameworks!` for cocoapods 1.9. Also changed our podfile for Tutorial app and add travis test for the same, so that in future if there are any further changes with the API in new releases of cocoapods, we can catch it.
## Changelog

- Added travis test for iOS Tutorial app
- Updated the getting started guide for iOS
Pull Request resolved: https://github.com/facebook/flipper/pull/892

Test Plan: Travis test passed and also tested that tutorial app builds with cocoapods 1.9

Reviewed By: mweststrate

Differential Revision: D20587989

Pulled By: priteshrnandgaonkar

fbshipit-source-id: b297e6b1298a20a9279ad6414e9d099917876fb1
2020-03-23 04:55:52 -07:00

117 lines
3.0 KiB
YAML

os: osx
osx_image: xcode10.2
matrix:
include:
- language: node_js
os: linux
node_js:
- "11"
install:
- cd website
- yarn
- cd ..
script:
- cd website
- yarn build
- cd ..
deploy:
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
fqdn: fbflipper.com
local-dir: website/build/flipper
keep-history: true
on:
branch: master
- language: node_js
os: linux
node_js:
- "11"
install:
- cd desktop
- yarn
script:
- yarn lint
- yarn test
- yarn build --linux --version=$TRAVIS_BUILD_NUMBER
- language: objective-c
cache:
cocoapods: true
directories:
- $HOME/Library/Caches/CocoaPods/Pods/Release/
before_install:
- gem install cocoapods
- pod --version
- rm -f iOS/Sample/Podfile.lock
- rm -f iOS/Sample/build.log
- rm -f iOS/SampleSwift/Podfile.lock
- pod repo update --silent
install:
- cd iOS/Sample
- rm -f Podfile.lock
- travis_wait 30 pod install --silent
- cd ../../
script:
- cd iOS/Sample
- IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$")
- travis_wait 30 xcodebuild build -workspace Sample.xcworkspace -scheme Sample -sdk $IPHONESIMULATOR -quiet > ./build.log
- tail -100 ./build.log
- language: objective-c
cache:
cocoapods: true
directories:
- $HOME/Library/Caches/CocoaPods/Pods/Release/
before_install:
- gem install cocoapods
- pod --version
- rm -f iOS/SampleSwift/Podfile.lock
- rm -f iOS/SampleSwift/build.log
- pod repo update --silent
install:
- cd iOS/SampleSwift
- rm -f Podfile.lock
- travis_wait 30 pod install --silent
- cd ../../
script:
- cd iOS/SampleSwift
- IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$")
- travis_wait 30 xcodebuild build -workspace SampleSwift.xcworkspace -scheme SampleSwift -sdk $IPHONESIMULATOR -quiet > ./build.log
- tail -100 ./build.log
- language: objective-c
cache:
cocoapods: true
directories:
- $HOME/Library/Caches/CocoaPods/Pods/Release/
before_install:
- gem install cocoapods
- pod --version
- rm -f iOS/Tutorial/Podfile.lock
- rm -f iOS/Tutorial/build.log
- pod repo update --silent
install:
- cd iOS/Tutorial
- travis_wait 30 pod install --silent
- cd ../../
script:
- cd iOS/Tutorial
- IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$")
- travis_wait 30 xcodebuild build -workspace Tutorial.xcworkspace -scheme Tutorial -sdk $IPHONESIMULATOR -quiet > ./build.log
- tail -100 ./build.log