Don't clobber the latest version of 0.10 for tests.

master
Jordan Harband 2014-04-19 16:31:48 -07:00
parent 752c0e4ef1
commit b15ea07067
3 changed files with 11 additions and 10 deletions

View File

@ -3,7 +3,7 @@
set -e
. ../../nvm.sh
VERSION=v0.10.26
VERSION=v0.10.7
# Remove the stuff we're clobbering.
[ -e ../../$VERSION ] && rm -R ../../$VERSION

View File

@ -3,7 +3,7 @@
set -e
. ../../nvm.sh
VERSION=v0.10.26
VERSION=v0.10.7
# Remove the stuff we're clobbering.
[ -e ../../$VERSION ] && rm -R ../../$VERSION

View File

@ -4,20 +4,21 @@ set -e
. ../../nvm.sh
# Remove the stuff we're clobbering.
[ -e ../../v0.10.25 ] && rm -R ../../v0.10.25
[ -e ../../v0.10.26 ] && rm -R ../../v0.10.26
[ -e ../../v0.10.7 ] && rm -R ../../v0.10.7
[ -e ../../v0.10.8 ] && rm -R ../../v0.10.8
# Install from binary
nvm install 0.10.25
nvm install 0.10.26
nvm install 0.10.7
nvm install 0.10.8
# Check
[ -d ../../v0.10.25 ]
[ -d ../../v0.10.26 ]
[ -d ../../v0.10.7 ]
[ -d ../../v0.10.8 ]
# Use the first one
nvm use 0.10.25
nvm use 0.10.7
# Use the latest one
nvm use 0.10
node --version | grep v0.10.26
node --version | grep v0.10.8