Browse Source

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

master
Jordan Harband 11 years ago
parent
commit
b15ea07067
  1. 2
      test/slow/install from binary
  2. 2
      test/slow/install from source
  3. 17
      test/slow/install two versions and use the latest one

2
test/slow/install from binary

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

2
test/slow/install from source

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

17
test/slow/install two versions and use the latest one

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

Loading…
Cancel
Save