Skip to content

Commit

Permalink
ci: Test against Carthage build
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Oct 16, 2019
1 parent 9b40bd9 commit 9d3ba16
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ DerivedData
Pods
Carthage
*.idea
features/fixtures/carthage-proj
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ cache:
- cocoapods
matrix:
include:
- osx_image: xcode11
before_script:
# Xcode 11+ no longer ships with all device combinations premade
- xcrun simctl create "13-xs" "iPhone XS" com.apple.CoreSimulator.SimRuntime.iOS-13-0
- mkdir -p features/fixtures/carthage-proj
script: make build_carthage
- osx_image: xcode11
env: PLATFORM=iOS
# Xcode 11+ no longer ships with all device combinations premade
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ build: ## Build the library
build_ios_static: ## Build the static library target
$(XCODEBUILD) -project iOS/Bugsnag.xcodeproj -scheme BugsnagStatic

build_carthage: ## Build the latest pushed commit with Carthage
@mkdir -p features/fixtures/carthage-proj
@echo 'github "bugsnag/bugsnag-cocoa" "'$(shell git rev-parse HEAD)'"' > features/fixtures/carthage-proj/Cartfile
@cd features/fixtures/carthage-proj && carthage update --platform ios && \
carthage update --platform macos

bump: ## Bump the version numbers to $VERSION
ifeq ($(VERSION),)
@$(error VERSION is not defined. Run with `make VERSION=number bump`)
Expand Down

0 comments on commit 9d3ba16

Please sign in to comment.