Skip to content

Commit

Permalink
Merge pull request #135 from devnev/ios-build-skips-detox-setup-v2
Browse files Browse the repository at this point in the history
feat: skip Android & Detox setup in ios_build job
  • Loading branch information
cortinico authored Jul 11, 2023
2 parents 87672bb + 7df4e77 commit 0af919c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
34 changes: 25 additions & 9 deletions src/commands/setup_macos_executor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ parameters:
description: Should we run brew update? Defaults to true
type: boolean
default: true
android:
description: Should we set up the Android build environment? Defaults to true
type: boolean
default: true
detox:
description: Should we set up Detox? Defaults to true
type: boolean
default: true

steps:
- run:
Expand Down Expand Up @@ -55,15 +63,23 @@ steps:
name: Update brew
command: brew update >/dev/null

- run:
name: Configure Detox Environment
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install android-commandlinetools >/dev/null
touch .watchmanconfig
node -v
- when:
condition: <<parameters.android>>
steps:
run:
name: Configure Android Build Environment
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install android-commandlinetools >/dev/null
- when:
condition: <<parameters.detox>>
steps:
run:
name: Configure Detox Environment
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
- when:
condition: <<parameters.homebrew_cache>>
Expand Down
2 changes: 2 additions & 0 deletions src/jobs/ios_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ steps:
node_version: <<parameters.node_version>>
homebrew_cache: <<parameters.homebrew_cache>>
homebrew_update: <<parameters.homebrew_update>>
android: false
detox: false
- yarn_install:
cache: <<parameters.yarn_cache>>
cache_folder: <<parameters.yarn_cache_folder>>
Expand Down
1 change: 1 addition & 0 deletions src/jobs/ios_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ steps:
node_version: <<parameters.node_version>>
homebrew_cache: <<parameters.homebrew_cache>>
homebrew_update: <<parameters.homebrew_update>>
android: false
- ios_simulator_start:
device: <<parameters.device>>
- yarn_install:
Expand Down

0 comments on commit 0af919c

Please sign in to comment.