-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ef6cf8
commit b607782
Showing
4 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
description: Builds the iOS app at the given path with the given build scheme | ||
|
||
executor: macos | ||
|
||
parameters: | ||
# For this job | ||
checkout: | ||
description: Boolean for whether or not to checkout as a first step. Default is false. | ||
type: boolean | ||
default: false | ||
attach_workspace: | ||
description: Boolean for whether or not to attach to an existing workspace. Default is true. | ||
type: boolean | ||
default: true | ||
workspace_root: | ||
description: Workspace root path that is either an absolute path or a path relative to the working directory. Defaults to '.' (the working directory). | ||
type: string | ||
default: . | ||
start_metro: | ||
description: If we should start the Metro packager in the background for this job. | ||
type: boolean | ||
default: false | ||
# For the iOS build command | ||
project_type: | ||
description: If the iOS app is built using a project file (*.xcodeproj) or a workspace. | ||
type: enum | ||
enum: ["project", "workspace"] | ||
default: "project" | ||
project_path: | ||
description: The path to the Xcode project (*.xcodeproj) or the Xcode workspace (*.xcworkspace) that you want to build, relative to the root of the repository. | ||
type: string | ||
build_configuration: | ||
description: The build configuration to use. This is normally either "Debug" or "Release" but you may have custom build configuration configured for your app. | ||
type: string | ||
default: "Debug" | ||
derived_data_path: | ||
description: The path to the directory to place the derived data, relative to the root of the repository. | ||
type: string | ||
default: "ios/build" | ||
device: | ||
description: The type of device you want to build for. | ||
type: string | ||
default: "iPhone X" | ||
scheme: | ||
description: The scheme to use. | ||
type: string | ||
|
||
steps: | ||
- when: | ||
condition: <<parameters.checkout>> | ||
steps: | ||
- checkout | ||
- when: | ||
condition: <<parameters.attach_workspace>> | ||
steps: | ||
- attach_workspace: | ||
at: <<parameters.workspace_root>> | ||
- setup_macos_executor | ||
- yarn_install | ||
- when: | ||
condition: <<parameters.start_metro>> | ||
steps: | ||
- metro_start | ||
- ios_build: | ||
project_path: <<parameters.project_path>> | ||
derived_data_path: <<parameters.derived_data_path>> | ||
device: <<parameters.device>> | ||
build_configuration: <<parameters.build_configuration>> | ||
scheme: <<parameters.scheme>> | ||
project_type: <<parameters.project_type>> |