Skip to content

Commit 0af919c

Browse files
authoredJul 11, 2023
Merge pull request #135 from devnev/ios-build-skips-detox-setup-v2
feat: skip Android & Detox setup in ios_build job
2 parents 87672bb + 7df4e77 commit 0af919c

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed
 

‎src/commands/setup_macos_executor.yml

+25-9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ parameters:
1313
description: Should we run brew update? Defaults to true
1414
type: boolean
1515
default: true
16+
android:
17+
description: Should we set up the Android build environment? Defaults to true
18+
type: boolean
19+
default: true
20+
detox:
21+
description: Should we set up Detox? Defaults to true
22+
type: boolean
23+
default: true
1624

1725
steps:
1826
- run:
@@ -55,15 +63,23 @@ steps:
5563
name: Update brew
5664
command: brew update >/dev/null
5765

58-
- run:
59-
name: Configure Detox Environment
60-
command: |
61-
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
62-
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask >/dev/null
63-
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
64-
HOMEBREW_NO_AUTO_UPDATE=1 brew install android-commandlinetools >/dev/null
65-
touch .watchmanconfig
66-
node -v
66+
- when:
67+
condition: <<parameters.android>>
68+
steps:
69+
run:
70+
name: Configure Android Build Environment
71+
command: |
72+
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask >/dev/null
73+
HOMEBREW_NO_AUTO_UPDATE=1 brew install android-commandlinetools >/dev/null
74+
75+
- when:
76+
condition: <<parameters.detox>>
77+
steps:
78+
run:
79+
name: Configure Detox Environment
80+
command: |
81+
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
82+
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
6783
6884
- when:
6985
condition: <<parameters.homebrew_cache>>

‎src/jobs/ios_build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ steps:
107107
node_version: <<parameters.node_version>>
108108
homebrew_cache: <<parameters.homebrew_cache>>
109109
homebrew_update: <<parameters.homebrew_update>>
110+
android: false
111+
detox: false
110112
- yarn_install:
111113
cache: <<parameters.yarn_cache>>
112114
cache_folder: <<parameters.yarn_cache_folder>>

‎src/jobs/ios_build_and_test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ steps:
121121
node_version: <<parameters.node_version>>
122122
homebrew_cache: <<parameters.homebrew_cache>>
123123
homebrew_update: <<parameters.homebrew_update>>
124+
android: false
124125
- ios_simulator_start:
125126
device: <<parameters.device>>
126127
- yarn_install:

0 commit comments

Comments
 (0)
Please sign in to comment.