Skip to content

Commit

Permalink
Moved to a single multi-platform target
Browse files Browse the repository at this point in the history
Thanks so much Moya for this! A lot of manual changes were necessary:
- the SUPPORTED_PLATFORMS must include all of iOS, macOS and tvOS;
- the FRAMEWORK_SEARCH_PATHS need to be individually defined for each
SDK;
- in the tests target, the LD_RUNPATH_SEARCH_PATHS are different for
macOS;
- the TARGETED_DEVICE_FAMILY must include all of iOS, macOS and tvOS aka
1,2,3 (it can't be left out of the config because the default would also
include watchOS aka 4)
  • Loading branch information
gobetti committed Nov 8, 2018
1 parent cfe3010 commit 7d598f3
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 845 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
osx_image: xcode10
language: objective-c
xcode_project: RxNimble.xcodeproj
xcode_scheme: RxNimble

cache:
directories:
Expand All @@ -11,20 +12,20 @@ before_install:
- carthageversion=$(carthage version)
- if [ $carthageversion != "0.31.2" ]; then brew uninstall carthage; HOMEBREW_NO_AUTO_UPDATE=1 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/a85feeb75bc9e9beb7f2e9dc6e2ccc996a6aeaf5/Formula/carthage.rb; fi

matrix:
jobs:
include:
- stage: prepare carthage cache
script:
- carthage bootstrap --no-use-binaries --cache-builds
- stage: unit tests
xcode_scheme: RxNimble-macOS
- xcode_scheme: RxNimble-iOS
- xcode_scheme: RxNimble-tvOS
xcode_destination: OS=12.0,name=Apple TV # xcodebuild complains about Bitcode if we don't specify this
- stage: carthage builds
script:
- carthage build --cache-builds --no-skip-current --platform macOS
- script:
- carthage build --cache-builds --no-skip-current --platform iOS
- script:
- carthage build --cache-builds --no-skip-current --platform tvOS

stages:
- prepare carthage cache
- test
- carthage builds

0 comments on commit 7d598f3

Please sign in to comment.