[Tests] try v3.3 instead of v1 in hopes they will compile faster.

Jordan Harband 2016-08-14 19:43:47 -07:00
parent 32a1b4124c
commit adb6a187a9
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
3 changed files with 19 additions and 17 deletions

View File

@ -6,16 +6,17 @@ die () { echo $@ ; exit 1; }
. ../../nvm.sh . ../../nvm.sh
NVM_TEST_VERSION="v1.0.0" set -ex
NVM_PREFIXED_TEST_VERSION="iojs-$NVM_TEST_VERSION"
NVM_TEST_VERSION='v3.3.1'
NVM_PREFIXED_TEST_VERSION="iojs-${NVM_TEST_VERSION}"
# Remove the stuff we're clobbering. # 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 # 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 # Check
[ -d ../../versions/io.js/$NVM_TEST_VERSION ] 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" nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" || "'nvm run ${NVM_PREFIXED_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed"

View File

@ -4,21 +4,20 @@ die () { echo $@ ; exit 1; }
. ../../nvm.sh . ../../nvm.sh
NVM_TEST_VERSION=v1.0.3 set -ex
NVM_PREFIXED_TEST_VERSION="iojs-$NVM_TEST_VERSION"
VERSION_PATH="../../versions/io.js/$NVM_TEST_VERSION" NVM_TEST_VERSION='v3.3.0'
NVM_PREFIXED_TEST_VERSION="iojs-${NVM_TEST_VERSION}"
# Remove the stuff we're clobbering. # Remove the stuff we're clobbering.
[ -e "$VERSION_PATH" ] && rm -R "$VERSION_PATH" nvm uninstall "${NVM_TEST_VERSION}" || echo 'not installed'
# Install from binary # Install from binary
echo "$NVM_PREFIXED_TEST_VERSION" > .nvmrc echo "${NVM_PREFIXED_TEST_VERSION}" > .nvmrc
nvm install -s || "'nvm install -s' failed" nvm install -s || "'nvm install -s' failed"
# Check # Check
[ -d "$VERSION_PATH" ] || die "$VERSION_PATH did not exist" nvm_is_version_installed "${NVM_PREFIXED_TEST_VERSION}" || die 'version is not installed'
nvm run $NVM_PREFIXED_TEST_VERSION --version | grep $NVM_TEST_VERSION \ nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" \
|| die "'nvm run $NVM_PREFIXED_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" || die "'nvm run ${NVM_PREFIXED_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed"

View File

@ -4,6 +4,8 @@
nvm deactivate nvm deactivate
nvm uninstall iojs-v1.0.0 nvm uninstall iojs-v1.0.0
nvm uninstall iojs-v1.0.3 nvm uninstall iojs-v1.0.3
nvm uninstall iojs-v3.3.0
nvm uninstall iojs-v3.3.1
if [ -f ".nvmrc" ]; then if [ -f ".nvmrc" ]; then
rm .nvmrc rm .nvmrc