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.
master
Fraser Tweedale 2014-02-22 12:15:40 +10:00
parent 9108a7f7fa
commit 332ae1afcb
2 changed files with 12 additions and 8 deletions

View File

@ -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

View File

@ -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