@@ -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
1725steps :
1826 - run :
@@ -27,7 +35,12 @@ steps:
2735 source $BASH_ENV
2836
2937 - when :
30- condition : <<parameters.homebrew_cache>>
38+ condition :
39+ and :
40+ - <<parameters.homebrew_cache>>
41+ - or :
42+ - <<parameters.android>>
43+ - <<parameters.detox>>
3144 steps :
3245 - restore_cache :
3346 key : |
@@ -50,24 +63,42 @@ steps:
5063 command : node --version
5164
5265 - when :
53- condition : <<parameters.homebrew_update>>
66+ condition :
67+ and :
68+ - <<parameters.homebrew_update>>
69+ - or :
70+ - <<parameters.android>>
71+ - <<parameters.detox>>
5472 steps :
5573 - run :
5674 name : Update brew
5775 command : brew update >/dev/null
5876
59- - run :
60- name : Configure Detox Environment
61- command : |
62- HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
63- HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask >/dev/null
64- HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
65- HOMEBREW_NO_AUTO_UPDATE=1 brew install android-commandlinetools >/dev/null
66- touch .watchmanconfig
67- node -v
77+ - when :
78+ condition : <<parameters.android>>
79+ steps :
80+ run :
81+ name : Configure Android Build Environment
82+ command : |
83+ HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask >/dev/null
84+ HOMEBREW_NO_AUTO_UPDATE=1 brew install android-commandlinetools >/dev/null
85+
86+ - when :
87+ condition : <<parameters.detox>>
88+ steps :
89+ run :
90+ name : Configure Detox Environment
91+ command : |
92+ HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
93+ HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
6894
6995 - when :
70- condition : <<parameters.homebrew_cache>>
96+ condition :
97+ and :
98+ - <<parameters.homebrew_cache>>
99+ - or :
100+ - <<parameters.android>>
101+ - <<parameters.detox>>
71102 steps :
72103 - save_cache :
73104 paths :
0 commit comments