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 10, 2019
1 parent 0278d11 commit 6d76560
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
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
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ matrix:
env: PLATFORM=iOS
# Xcode 11+ no longer ships with all device combinations premade
before_script: xcrun simctl create "13-xs" "iPhone XS" com.apple.CoreSimulator.SimRuntime.iOS-13-0
script: make test OS=13.0 DEVICE="iPhone XS"
script:
- make test OS=13.0 DEVICE="iPhone XS"
- make build_carthage
- osx_image: xcode10.2
env: PLATFORM=iOS
script:
Expand All @@ -19,6 +21,7 @@ matrix:
- make test OS=10.3.1
- make test OS=9.3
- make test OS=9.3 TEST_CONFIGURATION=Release
- make build_carthage
after_success:
- bash <(curl -s 'https://codecov.io/bash') -Z -J '^Bugsnag$' -X gcov -X coveragepy -X fix -D build
- osx_image: xcode10.2 # macos 10.14
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ 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 tvos && \
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 6d76560

Please sign in to comment.