Skip to content

Commit

Permalink
fix: Fix errors when installing NodeJS on MacOS executor (react-nativ…
Browse files Browse the repository at this point in the history
  • Loading branch information
roni-castro committed Feb 3, 2020
1 parent dd7046a commit 19ac8f7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/commands/setup_macos_executor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,25 @@ steps:
key: |
brew-cache-{{ arch }}-{{ .Environment.CACHE_VERSION }}
- run:
name: Install node@<<parameters.node_version>>
command: |
set +e
touch $BASH_ENV
curl -o- https://github.com/creationix/nvm/v0.33.5/install.sh | bash
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
echo nvm install <<parameters.node_version>> >> $BASH_ENV
echo nvm alias default <<parameters.node_version>> >> $BASH_ENV
- run:
name: Verify node version
command: node --version

- 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 node@<<parameters.node_version>> >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install android-sdk >/dev/null
touch .watchmanconfig
Expand Down

0 comments on commit 19ac8f7

Please sign in to comment.