[Tests] try v3.3 instead of v1 in hopes they will compile faster.
parent
32a1b4124c
commit
adb6a187a9
|
@ -6,16 +6,17 @@ die () { echo $@ ; exit 1; }
|
|||
|
||||
. ../../nvm.sh
|
||||
|
||||
NVM_TEST_VERSION="v1.0.0"
|
||||
NVM_PREFIXED_TEST_VERSION="iojs-$NVM_TEST_VERSION"
|
||||
set -ex
|
||||
|
||||
NVM_TEST_VERSION='v3.3.1'
|
||||
NVM_PREFIXED_TEST_VERSION="iojs-${NVM_TEST_VERSION}"
|
||||
|
||||
# Remove the stuff we're clobbering.
|
||||
[ -e ../../versions/io.js/$NVM_TEST_VERSION ] && rm -R ../../versions/io.js/$NVM_TEST_VERSION
|
||||
nvm uninstall "${NVM_TEST_VERSION}" || echo 'not installed'
|
||||
|
||||
# Install from source
|
||||
(watch nvm install -s $NVM_PREFIXED_TEST_VERSION) || die "'nvm install -s $NVM_PREFIXED_TEST_VERSION' failed"
|
||||
(watch nvm install -s "${NVM_PREFIXED_TEST_VERSION}") || die "'nvm install -s ${NVM_PREFIXED_TEST_VERSION}' failed"
|
||||
|
||||
# Check
|
||||
[ -d ../../versions/io.js/$NVM_TEST_VERSION ]
|
||||
nvm run $NVM_PREFIXED_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run $NVM_PREFIXED_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed"
|
||||
|
||||
nvm_is_version_installed "${NVM_PREFIXED_TEST_VERSION}" || die 'version not installed'
|
||||
nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" || "'nvm run ${NVM_PREFIXED_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed"
|
||||
|
|
|
@ -4,21 +4,20 @@ die () { echo $@ ; exit 1; }
|
|||
|
||||
. ../../nvm.sh
|
||||
|
||||
NVM_TEST_VERSION=v1.0.3
|
||||
NVM_PREFIXED_TEST_VERSION="iojs-$NVM_TEST_VERSION"
|
||||
VERSION_PATH="../../versions/io.js/$NVM_TEST_VERSION"
|
||||
set -ex
|
||||
|
||||
NVM_TEST_VERSION='v3.3.0'
|
||||
NVM_PREFIXED_TEST_VERSION="iojs-${NVM_TEST_VERSION}"
|
||||
|
||||
# Remove the stuff we're clobbering.
|
||||
[ -e "$VERSION_PATH" ] && rm -R "$VERSION_PATH"
|
||||
nvm uninstall "${NVM_TEST_VERSION}" || echo 'not installed'
|
||||
|
||||
# Install from binary
|
||||
echo "$NVM_PREFIXED_TEST_VERSION" > .nvmrc
|
||||
echo "${NVM_PREFIXED_TEST_VERSION}" > .nvmrc
|
||||
|
||||
nvm install -s || "'nvm install -s' failed"
|
||||
|
||||
# Check
|
||||
[ -d "$VERSION_PATH" ] || die "$VERSION_PATH did not exist"
|
||||
nvm run $NVM_PREFIXED_TEST_VERSION --version | grep $NVM_TEST_VERSION \
|
||||
|| die "'nvm run $NVM_PREFIXED_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed"
|
||||
|
||||
|
||||
nvm_is_version_installed "${NVM_PREFIXED_TEST_VERSION}" || die 'version is not installed'
|
||||
nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" \
|
||||
|| die "'nvm run ${NVM_PREFIXED_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed"
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
nvm deactivate
|
||||
nvm uninstall iojs-v1.0.0
|
||||
nvm uninstall iojs-v1.0.3
|
||||
nvm uninstall iojs-v3.3.0
|
||||
nvm uninstall iojs-v3.3.1
|
||||
|
||||
if [ -f ".nvmrc" ]; then
|
||||
rm .nvmrc
|
||||
|
|
Loading…
Reference in New Issue