Skip to content
Myr

[Tests] fix failing tests on master due to npm registry SSL changes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 17c33fd · Browse files · 3 files+17 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+17 added−12 removed

  • tests:+17 added−12 removed

3 files+17 added−12 removed

modified:test/installation_node/install latest npm+2 added-1 removed
24 unmodified lines
25nvm install-latest-npm || die 'nvm install-latest-npm failed: 3'26NPM_VERSION="$(npm --version)"27[ "${NPM_VERSION}" = '4.6.1' ] || die "io.js v1.x updates to ${NPM_VERSION}; expected v4.6.1"2829export NPM_CONFIG_STRICT_SSL=false # the npm registry tightened up their SSL certs3031nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 4'32nvm install 0.8.27 >/dev/null 2>&1 || die 'install v0.8 failed'33nvm install-latest-npm || die 'nvm install-latest-npm failed: 4'34NPM_VERSION="$(npm --version)"
1 unmodified line
3637## Commented to work around travis-ci breaking 0,6 installs38# nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 5'39# nvm install 0.6.21 >/dev/null 2>&1 || die 'install v0.6 failed'38# export NPM_CONFIG_STRICT_SSL=false # npm 1 on travis can't handle SSL to npm40# nvm install-latest-npm || die 'nvm install-latest-npm failed: 5'41# NPM_VERSION="$(npm --version)"42# [ "${NPM_VERSION}" = '1.3.26' ] || die "node 0.6.21 updates to ${NPM_VERSION}; expected v1.3.26"
modified:test/installation_node/install while reinstalling packages+11 added-11 removed
3 unmodified lines
45\. ../../nvm.sh67# Remove the stuff we're clobbering.8[ -e "${NVM_DIR}/v0.9.7" ] && rm -R "${NVM_DIR}/v0.9.7"9[ -e "${NVM_DIR}/v0.9.12" ] && rm -R "${NVM_DIR}/v0.9.12"8[ -e "${NVM_DIR}/versions/node/v9.7.0" ] && rm -R "${NVM_DIR}/versions/node/v9.7.0"9[ -e "${NVM_DIR}/versions/node/v9.10.0" ] && rm -R "${NVM_DIR}/versions/node/v9.10.0"1011# Install from binary12nvm install 0.9.712nvm install 9.7.01314# Check15[ -d "${NVM_DIR}/v0.9.7" ] || die "nvm install 0.9.7 didn't install"15[ -d "${NVM_DIR}/versions/node/v9.7.0" ] || die "nvm install 9.7.0 didn't install"1617nvm use 0.9.717nvm use 9.7.01819node --version | grep v0.9.7 > /dev/null || die "nvm use 0.9.7 failed"19node --version | grep v9.7.0 > /dev/null || die "nvm use 9.7.0 failed"2021npm install -g object-is@0.0.0 || die "npm install -g object-is failed"22npm list --global | grep object-is > /dev/null || die "object-is isn't installed"2324nvm ls 0.9 | grep v0.9.7 > /dev/null || die "nvm ls 0.9 didn't show v0.9.7"24nvm ls 9 | grep v9.7.0 > /dev/null || die "nvm ls 9 didn't show v9.7.0"2526nvm install 0.9.12 --reinstall-packages-from=0.9 || die "nvm install 0.9.12 --reinstall-packages-from=0.9 failed"26nvm install 9.10.0 --reinstall-packages-from=9 || die "nvm install 9.10.0 --reinstall-packages-from=9 failed"2728[ -d "${NVM_DIR}/v0.9.12" ] || die "nvm install 0.9.12 didn't install"28[ -d "${NVM_DIR}/versions/node/v9.10.0" ] || die "nvm install 9.10.0 didn't install"2930nvm use 0.931node --version | grep v0.9.12 > /dev/null || die "nvm ls 0.9 didn't use v0.9.12"30nvm use 931node --version | grep v9.10.0 > /dev/null || die "nvm ls 9 didn't use v9.10.0"3233npm list --global | grep object-is > /dev/null || die "object-is isn't installed"
modified:test/installation_node/teardown_dir+4 added
2 unmodified lines
3\. ../../nvm.sh4nvm deactivate5nvm uninstall v0.10.76nvm uninstall v4.2.27nvm uninstall v0.9.78nvm uninstall v9.7.09nvm uninstall v0.9.1210nvm uninstall v9.10.01112if [ -f ".nvmrc" ]; then13 rm .nvmrc14fi
4 unmodified lines