[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
Provenance
- Commit
e7a37f3- Tree
de56405- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
17c33fd
3 files changed+17 added−12 removed
modified:test/installation_node/install latest npm+2 added-1 removed
24 unmodified lines25 nvm install-latest-npm || die 'nvm install-latest-npm failed: 3'26 NPM_VERSION="$(npm --version)"27 [ "${NPM_VERSION}" = '4.6.1' ] || die "io.js v1.x updates to ${NPM_VERSION}; expected v4.6.1"28 29+export NPM_CONFIG_STRICT_SSL=false # the npm registry tightened up their SSL certs30+31 nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 4'32 nvm install 0.8.27 >/dev/null 2>&1 || die 'install v0.8 failed'33 nvm install-latest-npm || die 'nvm install-latest-npm failed: 4'34 NPM_VERSION="$(npm --version)"1 unmodified line36 37 ## 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 lines4 5 \. ../../nvm.sh6 7 # 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"10 11 # Install from binary12-nvm install 0.9.712+nvm install 9.7.013 14 # 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"16 17-nvm use 0.9.717+nvm use 9.7.018 19-node --version | grep v0.9.7 > /dev/null || die "nvm use 0.9.7 failed"19+node --version | grep v9.7.0 > /dev/null || die "nvm use 9.7.0 failed"20 21 npm install -g object-is@0.0.0 || die "npm install -g object-is failed"22 npm list --global | grep object-is > /dev/null || die "object-is isn't installed"23 24-nvm ls 0.9 | grep v0.9.7 > /dev/null || die "nvm ls 0.9 didn't show v0.9.7"24+nvm ls 9 | grep v9.7.0 > /dev/null || die "nvm ls 9 didn't show v9.7.0"25 26-nvm install 0.9.12 --reinstall-packages-from=0.9 || die "nvm install 0.9.12 --reinstall-packages-from=0.9 failed"26+nvm install 9.10.0 --reinstall-packages-from=9 || die "nvm install 9.10.0 --reinstall-packages-from=9 failed"27 28-[ -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"29 30-nvm use 0.931-node --version | grep v0.9.12 > /dev/null || die "nvm ls 0.9 didn't use v0.9.12"30+nvm use 931+node --version | grep v9.10.0 > /dev/null || die "nvm ls 9 didn't use v9.10.0"32 33 npm list --global | grep object-is > /dev/null || die "object-is isn't installed"modified:test/installation_node/teardown_dir+4 added
2 unmodified lines3 \. ../../nvm.sh4 nvm deactivate5 nvm uninstall v0.10.76 nvm uninstall v4.2.27+nvm uninstall v0.9.78+nvm uninstall v9.7.09+nvm uninstall v0.9.1210+nvm uninstall v9.10.011 12 if [ -f ".nvmrc" ]; then13 rm .nvmrc14 fi4 unmodified lines