Skip to content

Commit

Permalink
add xcode_version as a circle pipeline parameter rather than a YAML var
Browse files Browse the repository at this point in the history
  • Loading branch information
designatednerd committed Feb 18, 2020
1 parent 2a14f09 commit 865e64a
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: 2.1

xcode_version: "11.3.1"
parameters:
xcode_version:
type: string
default: "11.3.1"

commands:
common_test_steps:
Expand Down Expand Up @@ -37,7 +40,7 @@ commands:
jobs:
macOS10_15:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=macOS,arch=x86_64
CIRCLE_XCODE_SCHEME: Apollo
Expand All @@ -47,7 +50,7 @@ jobs:

iOS13_3:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=13.3,name=iPhone 11
CIRCLE_XCODE_SCHEME: Apollo
Expand All @@ -57,7 +60,7 @@ jobs:

iOS12_4:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=12.2,name=iPhone XS
CIRCLE_XCODE_SCHEME: Apollo
Expand All @@ -67,7 +70,7 @@ jobs:

tvOS13_3:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=tvOS Simulator,OS=13.3,name=Apple TV
CIRCLE_XCODE_SCHEME: Apollo
Expand All @@ -77,7 +80,7 @@ jobs:

SQLitemacOS10_15:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=macOS,arch=x86_64
CIRCLE_XCODE_SCHEME: ApolloSQLite
Expand All @@ -87,7 +90,7 @@ jobs:

SQLiteiOS13_3:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=13.3,name=iPhone 11
CIRCLE_XCODE_SCHEME: ApolloSQLite
Expand All @@ -97,7 +100,7 @@ jobs:

SQLiteiOS12_4:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=12.2,name=iPhone XS
CIRCLE_XCODE_SCHEME: ApolloSQLite
Expand All @@ -107,7 +110,7 @@ jobs:

WebSocketmacOS10_15:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=macOS,arch=x86_64
CIRCLE_XCODE_SCHEME: ApolloWebSocket
Expand All @@ -117,7 +120,7 @@ jobs:

WebSocketiOS13_3:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=13.3,name=iPhone 11
CIRCLE_XCODE_SCHEME: ApolloWebSocket
Expand All @@ -127,7 +130,7 @@ jobs:

WebSocketiOS12_4:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=12.2,name=iPhone XS
CIRCLE_XCODE_SCHEME: ApolloWebSocket
Expand All @@ -137,7 +140,7 @@ jobs:

CodegenLibmacOS10_15:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=macOS,arch=x86_64
CIRCLE_XCODE_SCHEME: ApolloCodegenLib
Expand All @@ -147,7 +150,7 @@ jobs:

CocoaPodsTrunk:
macos:
xcode: xcode_version
xcode: << pipeline.parameters.xcode_version >>
steps:
- checkout
# TODO: Remove when Circle updates the version of CP installed on their
Expand Down

0 comments on commit 865e64a

Please sign in to comment.