Skip to content

Commit eea6098

Browse files
authored
feat: allow passing executor parameters to test jobs (#141)
closes #112
1 parent 207d599 commit eea6098

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

src/jobs/android_test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
description: Tests the Android app on the given device, with the given Detox configuration. You should have already built the correct Android APK (including the androidTest APK) and have both persisted to the worksapce.
22

3-
executor: macos
4-
53
parameters:
64
# For this job
75
workspace_root:
@@ -76,6 +74,19 @@ parameters:
7674
description: Should we run brew update? Defaults to true
7775
type: boolean
7876
default: true
77+
xcode_version:
78+
description: The version of Xcode to use. See here for the list of supported versions https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions
79+
type: string
80+
default: "12.4.0"
81+
resource_class:
82+
description: Changes the resource class of the executor. Requires a support request to enable the resource_class parameter. See https://circleci.com/docs/2.0/configuration-reference/#resource_class
83+
type: string
84+
default: medium
85+
86+
executor:
87+
name: macos
88+
xcode_version: <<parameters.xcode_version>>
89+
resource_class: <<parameters.resource_class>>
7990

8091
steps:
8192
- attach_workspace:

src/jobs/ios_build_and_test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
description: Builds the iOS app at the given path with the given build scheme and configuration and then runs the tests with the Detox configuration given.
22

3-
executor: macos
4-
53
parameters:
64
# For this job
75
checkout:
@@ -95,6 +93,19 @@ parameters:
9593
description: Should we run brew update? Defaults to true
9694
type: boolean
9795
default: true
96+
xcode_version:
97+
description: The version of Xcode to use. See here for the list of supported versions https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions
98+
type: string
99+
default: "12.4.0"
100+
resource_class:
101+
description: Changes the resource class of the executor. Requires a support request to enable the resource_class parameter. See https://circleci.com/docs/2.0/configuration-reference/#resource_class
102+
type: string
103+
default: medium
104+
105+
executor:
106+
name: macos
107+
xcode_version: <<parameters.xcode_version>>
108+
resource_class: <<parameters.resource_class>>
98109

99110
steps:
100111
- when:

0 commit comments

Comments
 (0)