File tree 3 files changed +28
-9
lines changed
3 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ parameters:
13
13
description : Should we run brew update? Defaults to true
14
14
type : boolean
15
15
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
16
24
17
25
steps :
18
26
- run :
@@ -55,15 +63,23 @@ steps:
55
63
name : Update brew
56
64
command : brew update >/dev/null
57
65
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
67
83
68
84
- when :
69
85
condition : <<parameters.homebrew_cache>>
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ steps:
107
107
node_version : <<parameters.node_version>>
108
108
homebrew_cache : <<parameters.homebrew_cache>>
109
109
homebrew_update : <<parameters.homebrew_update>>
110
+ android : false
111
+ detox : false
110
112
- yarn_install :
111
113
cache : <<parameters.yarn_cache>>
112
114
cache_folder : <<parameters.yarn_cache_folder>>
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ steps:
121
121
node_version : <<parameters.node_version>>
122
122
homebrew_cache : <<parameters.homebrew_cache>>
123
123
homebrew_update : <<parameters.homebrew_update>>
124
+ android : false
124
125
- ios_simulator_start :
125
126
device : <<parameters.device>>
126
127
- yarn_install :
You can’t perform that action at this time.
0 commit comments