Browse Source

use a more portable release in install tests

The tests for nvm install currently install v0.8.6, which doesn't
build on FreeBSD due to Linuxisms.  Switch to a more recent version
that does work.
install_use_nvmrc
Fraser Tweedale 11 years ago
parent
commit
332ae1afcb
  1. 10
      test/slow/install from binary
  2. 10
      test/slow/install from source

10
test/slow/install from binary

@ -3,12 +3,14 @@
set -e
. ../../nvm.sh
VERSION=v0.10.26
# Remove the stuff we're clobbering.
[ -e ../../v0.8.6 ] && rm -R ../../v0.8.6
[ -e ../../$VERSION ] && rm -R ../../$VERSION
# Install from binary
nvm install 0.8.6
nvm install $VERSION
# Check
[ -d ../../v0.8.6 ]
nvm run v0.8.6 --version | grep v0.8.6
[ -d ../../$VERSION ]
nvm run $VERSION --version | grep $VERSION

10
test/slow/install from source

@ -3,12 +3,14 @@
set -e
. ../../nvm.sh
VERSION=v0.10.26
# Remove the stuff we're clobbering.
[ -e ../../v0.8.6 ] && rm -R ../../v0.8.6
[ -e ../../$VERSION ] && rm -R ../../$VERSION
# Install from source
nvm install -s 0.8.6
nvm install -s $VERSION
# Check
[ -d ../../v0.8.6 ]
nvm run v0.8.6 --version | grep v0.8.6
[ -d ../../$VERSION ]
nvm run $VERSION --version | grep $VERSION

Loading…
Cancel
Save