use nvm in tfs build agents

tfs: test nvm in darwin

tfs: darwin, source nvm

tfs: darwin nvm

tfs: make sure darwin nvm works

tfs: darwin nvm

tfs: linux nvm

tfs: test linux nvm

tfs: linux nvm

tfs: nvm for linux and darwin

tfs: fix nvm switch

tfs: windows nvm

tfs: nvm windows

tfs: windows nvm

tfs: windows nvm

tfs: fix windows nvm path

tfs: windows nvm

tfs: windows nvm

tfs: windows nvm

tfs: windows nvm

tfs: windows nvm

tfs: fix windows nvm

tfs: windows nvm

tfs: unify node.sh

tfs: linux, darwin nvm
This commit is contained in:
Joao Moreno
2017-07-04 11:28:47 +02:00
parent b05821bb97
commit 416f7f4e84
8 changed files with 30 additions and 0 deletions

15
build/tfs/common/node.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -e
# setup nvm
if [[ "$OSTYPE" == "darwin"* ]]; then
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
else
source $NVM_DIR/nvm.sh
fi
# install node
NODE_VERSION=7.10.0
nvm install $NODE_VERSION
nvm use $NODE_VERSION