-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated compatibility code.
* Remove support for the IOJS_ORG_MIRROR, NVM_IOJS_ORG_MIRROR and NVM_NODEJS_ORG_MIRROR enviroment variables. * Remove obsolete support for io.js. It's been out of support for over three years now. PR-URL: #1670 Reviewed-By: Richard Lau <[email protected]>
- Loading branch information
1 parent
7a71d68
commit 4748f6a
Showing
3 changed files
with
5 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,131 +187,6 @@ test('test process release - process.release ~ [email protected] / corp build', functi | |
}) | ||
}) | ||
|
||
test('test process release - process.version = 1.8.4', function (t) { | ||
t.plan(2) | ||
|
||
var release = processRelease([], { opts: {} }, 'v1.8.4', null) | ||
|
||
t.equal(release.semver.version, '1.8.4') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '1.8.4', | ||
name: 'iojs', | ||
baseUrl: 'https://iojs.org/download/release/v1.8.4/', | ||
tarballUrl: 'https://iojs.org/download/release/v1.8.4/iojs-v1.8.4.tar.gz', | ||
shasumsUrl: 'https://iojs.org/download/release/v1.8.4/SHASUMS256.txt', | ||
versionDir: 'iojs-1.8.4', | ||
libUrl32: 'https://iojs.org/download/release/v1.8.4/win-x86/iojs.lib', | ||
libUrl64: 'https://iojs.org/download/release/v1.8.4/win-x64/iojs.lib', | ||
libPath32: 'win-x86/iojs.lib', | ||
libPath64: 'win-x64/iojs.lib' | ||
}) | ||
}) | ||
|
||
test('test process release - process.release ~ [email protected]', function (t) { | ||
t.plan(2) | ||
|
||
var release = processRelease([], { opts: {} }, 'v3.2.24', { | ||
name: 'io.js', | ||
headersUrl: 'https://iojs.org/download/release/v3.2.24/iojs-v3.2.24-headers.tar.gz' | ||
}) | ||
|
||
t.equal(release.semver.version, '3.2.24') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '3.2.24', | ||
name: 'iojs', | ||
baseUrl: 'https://iojs.org/download/release/v3.2.24/', | ||
tarballUrl: 'https://iojs.org/download/release/v3.2.24/iojs-v3.2.24-headers.tar.gz', | ||
shasumsUrl: 'https://iojs.org/download/release/v3.2.24/SHASUMS256.txt', | ||
versionDir: 'iojs-3.2.24', | ||
libUrl32: 'https://iojs.org/download/release/v3.2.24/win-x86/iojs.lib', | ||
libUrl64: 'https://iojs.org/download/release/v3.2.24/win-x64/iojs.lib', | ||
libPath32: 'win-x86/iojs.lib', | ||
libPath64: 'win-x64/iojs.lib' | ||
}) | ||
}) | ||
|
||
test('test process release - process.release ~ [email protected] +libUrl32', function (t) { | ||
t.plan(2) | ||
|
||
var release = processRelease([], { opts: {} }, 'v3.2.11', { | ||
name: 'io.js', | ||
headersUrl: 'https://iojs.org/download/release/v3.2.11/iojs-v3.2.11-headers.tar.gz', | ||
libUrl: 'https://iojs.org/download/release/v3.2.11/win-x86/iojs.lib' // custom | ||
}) | ||
|
||
t.equal(release.semver.version, '3.2.11') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '3.2.11', | ||
name: 'iojs', | ||
baseUrl: 'https://iojs.org/download/release/v3.2.11/', | ||
tarballUrl: 'https://iojs.org/download/release/v3.2.11/iojs-v3.2.11-headers.tar.gz', | ||
shasumsUrl: 'https://iojs.org/download/release/v3.2.11/SHASUMS256.txt', | ||
versionDir: 'iojs-3.2.11', | ||
libUrl32: 'https://iojs.org/download/release/v3.2.11/win-x86/iojs.lib', | ||
libUrl64: 'https://iojs.org/download/release/v3.2.11/win-x64/iojs.lib', | ||
libPath32: 'win-x86/iojs.lib', | ||
libPath64: 'win-x64/iojs.lib' | ||
}) | ||
}) | ||
|
||
test('test process release - process.release ~ [email protected] +libUrl64', function (t) { | ||
t.plan(2) | ||
|
||
var release = processRelease([], { opts: {} }, 'v3.2.101', { | ||
name: 'io.js', | ||
headersUrl: 'https://iojs.org/download/release/v3.2.101/iojs-v3.2.101-headers.tar.gz', | ||
libUrl: 'https://iojs.org/download/release/v3.2.101/win-x64/iojs.lib' // custom | ||
}) | ||
|
||
t.equal(release.semver.version, '3.2.101') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '3.2.101', | ||
name: 'iojs', | ||
baseUrl: 'https://iojs.org/download/release/v3.2.101/', | ||
tarballUrl: 'https://iojs.org/download/release/v3.2.101/iojs-v3.2.101-headers.tar.gz', | ||
shasumsUrl: 'https://iojs.org/download/release/v3.2.101/SHASUMS256.txt', | ||
versionDir: 'iojs-3.2.101', | ||
libUrl32: 'https://iojs.org/download/release/v3.2.101/win-x86/iojs.lib', | ||
libUrl64: 'https://iojs.org/download/release/v3.2.101/win-x64/iojs.lib', | ||
libPath32: 'win-x86/iojs.lib', | ||
libPath64: 'win-x64/iojs.lib' | ||
}) | ||
}) | ||
|
||
test('test process release - process.release ~ [email protected] - borked win-ia32', function (t) { | ||
t.plan(2) | ||
|
||
var release = processRelease([], { opts: {} }, 'v3.2.101', { | ||
name: 'io.js', | ||
headersUrl: 'https://iojs.org/download/release/v3.2.101/iojs-v3.2.101-headers.tar.gz', | ||
libUrl: 'https://iojs.org/download/release/v3.2.101/win-ia32/iojs.lib' // custom | ||
}) | ||
|
||
t.equal(release.semver.version, '3.2.101') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '3.2.101', | ||
name: 'iojs', | ||
baseUrl: 'https://iojs.org/download/release/v3.2.101/', | ||
tarballUrl: 'https://iojs.org/download/release/v3.2.101/iojs-v3.2.101-headers.tar.gz', | ||
shasumsUrl: 'https://iojs.org/download/release/v3.2.101/SHASUMS256.txt', | ||
versionDir: 'iojs-3.2.101', | ||
libUrl32: 'https://iojs.org/download/release/v3.2.101/win-x86/iojs.lib', | ||
libUrl64: 'https://iojs.org/download/release/v3.2.101/win-x64/iojs.lib', | ||
libPath32: 'win-x86/iojs.lib', | ||
libPath64: 'win-x64/iojs.lib' | ||
}) | ||
}) | ||
|
||
test('test process release - process.release ~ [email protected] --target=0.10.40', function (t) { | ||
t.plan(2) | ||
|
||
|
@@ -337,31 +212,6 @@ test('test process release - process.release ~ [email protected] --target=0.10.40', fu | |
}) | ||
}) | ||
|
||
test('test process release - process.release ~ [email protected] --target=1.8.4', function (t) { | ||
t.plan(2) | ||
|
||
var release = processRelease([], { opts: { target: '1.8.4' } }, 'v4.1.23', { | ||
name: 'node', | ||
headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz' | ||
}) | ||
|
||
t.equal(release.semver.version, '1.8.4') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '1.8.4', | ||
name: 'iojs', | ||
baseUrl: 'https://iojs.org/download/release/v1.8.4/', | ||
tarballUrl: 'https://iojs.org/download/release/v1.8.4/iojs-v1.8.4.tar.gz', | ||
shasumsUrl: 'https://iojs.org/download/release/v1.8.4/SHASUMS256.txt', | ||
versionDir: 'iojs-1.8.4', | ||
libUrl32: 'https://iojs.org/download/release/v1.8.4/win-x86/iojs.lib', | ||
libUrl64: 'https://iojs.org/download/release/v1.8.4/win-x64/iojs.lib', | ||
libPath32: 'win-x86/iojs.lib', | ||
libPath64: 'win-x64/iojs.lib' | ||
}) | ||
}) | ||
|
||
test('test process release - process.release ~ [email protected] --dist-url=https://foo.bar/baz', function (t) { | ||
t.plan(2) | ||
|
||
|
@@ -547,91 +397,3 @@ test('test process release - NODEJS_ORG_MIRROR', function (t) { | |
|
||
delete process.env.NODEJS_ORG_MIRROR | ||
}) | ||
|
||
test('test process release - NVM_NODEJS_ORG_MIRROR', function (t) { | ||
t.plan(2) | ||
|
||
process.env.NVM_NODEJS_ORG_MIRROR = 'http://foo.bar' | ||
|
||
var release = processRelease([], { opts: {} }, 'v4.1.23', { | ||
name: 'node', | ||
headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz' | ||
}) | ||
|
||
t.equal(release.semver.version, '4.1.23') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '4.1.23', | ||
name: 'node', | ||
baseUrl: 'http://foo.bar/v4.1.23/', | ||
tarballUrl: 'http://foo.bar/v4.1.23/node-v4.1.23-headers.tar.gz', | ||
shasumsUrl: 'http://foo.bar/v4.1.23/SHASUMS256.txt', | ||
versionDir: '4.1.23', | ||
libUrl32: 'http://foo.bar/v4.1.23/win-x86/node.lib', | ||
libUrl64: 'http://foo.bar/v4.1.23/win-x64/node.lib', | ||
libPath32: 'win-x86/node.lib', | ||
libPath64: 'win-x64/node.lib' | ||
}) | ||
|
||
delete process.env.NVM_NODEJS_ORG_MIRROR | ||
}) | ||
|
||
test('test process release - IOJS_ORG_MIRROR', function (t) { | ||
t.plan(2) | ||
|
||
process.env.IOJS_ORG_MIRROR = 'http://foo.bar' | ||
|
||
var release = processRelease([], { opts: {} }, 'v3.2.24', { | ||
name: 'io.js', | ||
headersUrl: 'https://iojs.org/download/release/v3.2.24/iojs-v3.2.24-headers.tar.gz' | ||
}) | ||
|
||
t.equal(release.semver.version, '3.2.24') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '3.2.24', | ||
name: 'iojs', | ||
baseUrl: 'http://foo.bar/v3.2.24/', | ||
tarballUrl: 'http://foo.bar/v3.2.24/iojs-v3.2.24-headers.tar.gz', | ||
shasumsUrl: 'http://foo.bar/v3.2.24/SHASUMS256.txt', | ||
versionDir: 'iojs-3.2.24', | ||
libUrl32: 'http://foo.bar/v3.2.24/win-x86/iojs.lib', | ||
libUrl64: 'http://foo.bar/v3.2.24/win-x64/iojs.lib', | ||
libPath32: 'win-x86/iojs.lib', | ||
libPath64: 'win-x64/iojs.lib' | ||
}) | ||
|
||
delete process.env.IOJS_ORG_MIRROR | ||
}) | ||
|
||
|
||
test('test process release - NVM_IOJS_ORG_MIRROR', function (t) { | ||
t.plan(2) | ||
|
||
process.env.NVM_IOJS_ORG_MIRROR = 'http://foo.bar' | ||
|
||
var release = processRelease([], { opts: {} }, 'v3.2.24', { | ||
name: 'io.js', | ||
headersUrl: 'https://iojs.org/download/release/v3.2.24/iojs-v3.2.24-headers.tar.gz' | ||
}) | ||
|
||
t.equal(release.semver.version, '3.2.24') | ||
delete release.semver | ||
|
||
t.deepEqual(release, { | ||
version: '3.2.24', | ||
name: 'iojs', | ||
baseUrl: 'http://foo.bar/v3.2.24/', | ||
tarballUrl: 'http://foo.bar/v3.2.24/iojs-v3.2.24-headers.tar.gz', | ||
shasumsUrl: 'http://foo.bar/v3.2.24/SHASUMS256.txt', | ||
versionDir: 'iojs-3.2.24', | ||
libUrl32: 'http://foo.bar/v3.2.24/win-x86/iojs.lib', | ||
libUrl64: 'http://foo.bar/v3.2.24/win-x64/iojs.lib', | ||
libPath32: 'win-x86/iojs.lib', | ||
libPath64: 'win-x64/iojs.lib' | ||
}) | ||
|
||
delete process.env.NVM_IOJS_ORG_MIRROR | ||
}) |