Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(evergreen): change nvm path to local
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Lord authored and mbroadst committed Mar 27, 2018
1 parent 01c389d commit e42ea5b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .evg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ functions:
type: system
params:
script: |
export NVM_DIR="$HOME/src/.nvm"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install --lts=argon
nvm install --lts=${NODE_LTS_NAME}
"run tests":
- command: shell.exec
Expand All @@ -25,9 +24,8 @@ functions:
working_dir: "src"
script: |
export PATH="/opt/mongodbtoolchain/bin:$PATH"
export NVM_DIR="$HOME/.nvm"
export NVM_DIR="$HOME/src/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
npm install
MONGODB_VERSION=${VERSION} MONGODB_ENVIRONMENT=${TOPOLOGY} npm test
Expand Down Expand Up @@ -249,11 +247,11 @@ axes:
- id: "Argon"
display_name: "Node.js Argon LTS"
variables:
NODE_LTS: "argon"
NODE_LTS_NAME: "argon"
- id: "Boron"
display_name: "Node.js Boron LTS"
variables:
NODE_LTS: "boron"
NODE_LTS_NAME: "boron"

buildvariants:
- matrix_name: "tests-all"
Expand Down

0 comments on commit e42ea5b

Please sign in to comment.