Skip to content

Commit

Permalink
Improve CircleCi build configuration. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximAlien authored Oct 20, 2021
1 parent 4b0af6d commit b0a6008
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ step-library:
run:
name: Build and Test for iOS
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.2,name=iPhone X' -project MapboxSpeech.xcodeproj -scheme "MapboxSpeech iOS" clean build test
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=13.5,name=iPhone 11 Pro Max' -project MapboxSpeech.xcodeproj -scheme "MapboxSpeech iOS" clean build test
- &macos-build-test
run:
Expand All @@ -31,13 +31,13 @@ step-library:
run:
name: Build and Test for tvOS
command: |
xcodebuild -destination 'platform=tvOS Simulator,OS=12.2,name=Apple TV 4K (at 1080p)' -project MapboxSpeech.xcodeproj -scheme "MapboxSpeech tvOS" clean build test
xcodebuild -destination 'platform=tvOS Simulator,OS=13.4,name=Apple TV 4K (at 1080p)' -project MapboxSpeech.xcodeproj -scheme "MapboxSpeech tvOS" clean build test
- &watchos-build
run:
name: Build for watchOS
command: |
xcodebuild -destination 'platform=watchOS Simulator,OS=5.2,name=Apple Watch Series 3 - 42mm' -project MapboxSpeech.xcodeproj -scheme "MapboxSpeech watchOS" clean build
xcodebuild -destination 'platform=watchOS Simulator,OS=6.2.1,name=Apple Watch Series 5 - 44mm' -project MapboxSpeech.xcodeproj -scheme "MapboxSpeech watchOS" clean build
- &publish-codecov
run:
Expand All @@ -47,7 +47,7 @@ step-library:
jobs:
ios-build-test:
macos:
xcode: "10.2.1"
xcode: "11.5.0"
environment:
HOMEBREW_NO_AUTO_UPDATE: 0
steps:
Expand All @@ -59,13 +59,13 @@ jobs:
- *watchos-build
spm:
macos:
xcode: "10.2.1"
xcode: "11.5.0"
steps:
- checkout
- run: swift build
pod:
macos:
xcode: "10.2.1"
xcode: "11.5.0"
steps:
- checkout
- run:
Expand All @@ -76,4 +76,4 @@ jobs:
xcodegen generate
bundle install
bundle exec pod install
xcodebuild -workspace PodTest.xcworkspace -scheme PodTest -destination 'platform=iOS Simulator,OS=latest,name=iPhone X' build
xcodebuild -workspace PodTest.xcworkspace -scheme PodTest -destination 'platform=iOS Simulator,OS=latest,name=iPhone 11 Pro Max' build
2 changes: 1 addition & 1 deletion Cartfile.private
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "AliSoftware/OHHTTPStubs" ~> 7.0
github "AliSoftware/OHHTTPStubs" ~> 9.0
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "AliSoftware/OHHTTPStubs" "7.0.0"
github "AliSoftware/OHHTTPStubs" "9.1.0"
2 changes: 1 addition & 1 deletion MapboxSpeech.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 1220;
LastUpgradeCheck = 1250;
ORGANIZATIONNAME = Mapbox;
TargetAttributes = {
C54F534B1F6C754D00BFCC66 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1220"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1220"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1220"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1220"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
4 changes: 2 additions & 2 deletions Tests/MapboxSpeechTests/MapboxVoiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MapboxVoiceTests: XCTestCase {
}

override func tearDown() {
OHHTTPStubs.removeAllStubs()
HTTPStubs.removeAllStubs()
super.tearDown()
}

Expand All @@ -31,7 +31,7 @@ class MapboxVoiceTests: XCTestCase {
&& isPath("/voice/v1/speak/hello")
&& containsQueryParams(queryParams)) { _ in
let path = Bundle(for: type(of: self)).path(forResource: "hello", ofType: "mp3")
return OHHTTPStubsResponse(fileAtPath: path!, statusCode: 200, headers: nil)
return HTTPStubsResponse(fileAtPath: path!, statusCode: 200, headers: nil)
}

let voice = SpeechSynthesizer(accessToken: BogusToken)
Expand Down

0 comments on commit b0a6008

Please sign in to comment.