[CHORE] CircleCI Upgrades (#2269)

* Upgrade nvm

* Upgrade XCode

* Use nvm's default installed version of node (LTS)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Dan Caseley 2020-07-13 17:52:14 +01:00 committed by GitHub
parent 7275314854
commit 6436199780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -3,7 +3,7 @@ defaults: &defaults
macos: &macos macos: &macos
macos: macos:
xcode: "11.2.1" xcode: "11.5.0"
bash-env: &bash-env bash-env: &bash-env
BASH_ENV: "~/.nvm/nvm.sh" BASH_ENV: "~/.nvm/nvm.sh"
@ -33,14 +33,12 @@ save-npm-cache-mac: &save-npm-cache-mac
- ./node_modules - ./node_modules
install-node: &install-node install-node: &install-node
name: Install Node 10 name: Install Node
command: | command: |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.nvm/nvm.sh source ~/.nvm/nvm.sh
# https://github.com/creationix/nvm/issues/1394 INSTALLED_NODE=`nvm which current`
set +e echo "export PATH=\"${INSTALLED_NODE%%/node}:\$PATH\"" >> ~/.bash_profile
nvm install 10
echo 'export PATH="/home/circleci/.nvm/versions/node/v10.20.1/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile source ~/.bash_profile
restore-gems-cache: &restore-gems-cache restore-gems-cache: &restore-gems-cache