Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
spec: Update node tarball/libs to v10.20.1
Browse files Browse the repository at this point in the history
Also, add headers for Node v10.20.1
  • Loading branch information
DeeDeeG committed May 1, 2020
1 parent 208d982 commit 77227d8
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 34 deletions.
14 changes: 8 additions & 6 deletions spec/ci-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ describe 'apm ci', ->
delete process.env.npm_config_cache

app = express()
app.get '/node/v0.10.3/node-v0.10.3.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v0.10.3.tar.gz')
app.get '/node/v0.10.3/node.lib', (request, response) ->
app.get '/node/v10.20.1/node-v10.20.1.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1.tar.gz')
app.get '/node/v10.20.1/node-v10.20.1-headers.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1-headers.tar.gz')
app.get '/node/v10.20.1/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node.lib')
app.get '/node/v0.10.3/x64/node.lib', (request, response) ->
app.get '/node/v10.20.1/x64/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node_x64.lib')
app.get '/node/v0.10.3/SHASUMS256.txt', (request, response) ->
app.get '/node/v10.20.1/SHASUMS256.txt', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'SHASUMS256.txt')
app.get '/test-module-with-dependencies', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'install-locked-version.json')
Expand All @@ -50,7 +52,7 @@ describe 'apm ci', ->
server.listen 3000, '127.0.0.1', ->
process.env.ATOM_ELECTRON_URL = "http://localhost:3000/node"
process.env.ATOM_PACKAGES_URL = "http://localhost:3000/packages"
process.env.ATOM_ELECTRON_VERSION = 'v0.10.3'
process.env.ATOM_ELECTRON_VERSION = 'v10.20.1'
process.env.npm_config_registry = 'http://localhost:3000/'
live = true
waitsFor -> live
Expand Down
14 changes: 8 additions & 6 deletions spec/clean-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ describe 'apm clean', ->

app = express()

app.get '/node/v0.10.3/node-v0.10.3.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v0.10.3.tar.gz')
app.get '/node/v0.10.3/node.lib', (request, response) ->
app.get '/node/v10.20.1/node-v10.20.1.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1.tar.gz')
app.get '/node/v10.20.1/node-v10.20.1-headers.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1-headers.tar.gz')
app.get '/node/v10.20.1/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node.lib')
app.get '/node/v0.10.3/x64/node.lib', (request, response) ->
app.get '/node/v10.20.1/x64/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node_x64.lib')
app.get '/node/v0.10.3/SHASUMS256.txt', (request, response) ->
app.get '/node/v10.20.1/SHASUMS256.txt', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'SHASUMS256.txt')
app.get '/test-module', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'install-test-module.json')
Expand All @@ -36,7 +38,7 @@ describe 'apm clean', ->
atomHome = temp.mkdirSync('apm-home-dir-')
process.env.ATOM_HOME = atomHome
process.env.ATOM_ELECTRON_URL = "http://localhost:3000/node"
process.env.ATOM_ELECTRON_VERSION = 'v0.10.3'
process.env.ATOM_ELECTRON_VERSION = 'v10.20.1'
process.env.npm_config_registry = 'http://localhost:3000/'

moduleDirectory = path.join(temp.mkdirSync('apm-test-module-'), 'test-module-with-dependencies')
Expand Down
7 changes: 4 additions & 3 deletions spec/fixtures/SHASUMS256.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
d5abc24102c80b97f100e921075845ff491646dde6ebf11012635a67bd6aba2a ./node-v0.10.3.tar.gz
25d7639c423f94a1a930287b6c04cef45d8326d1b2ce375ee1ac275204533ad4 ./x64/node.lib
49b20743ba952c93470f0e8489c2a6f1f2d979c9cbe6937f34d6ef9e23885e1d ./node.lib
f2777bf2b140033c01d5f912df510dfa394e748f92bbaed24c832abf36cb3bdf ./node-v10.20.1-headers.tar.gz
ea39a70b715bfbd0281979c95a5b81136ffdc0e5bf66b1fd7dc3ef3473ce2c5a ./node-v10.20.1.tar.gz
213d72051a68c37afc37a5d185a4c5bfacc985bc35331024e5f28635f084da70 ./x64/node.lib
e5224f36cf5ae52ee8532e383142073fd6c28866745e9967992de28cfbf5b63a ./node.lib
Binary file removed spec/fixtures/node-v0.10.3.tar.gz
Binary file not shown.
Binary file added spec/fixtures/node-v10.20.1-headers.tar.gz
Binary file not shown.
Binary file added spec/fixtures/node-v10.20.1.tar.gz
Binary file not shown.
Binary file modified spec/fixtures/node.lib
Binary file not shown.
Binary file modified spec/fixtures/node_x64.lib
Binary file not shown.
14 changes: 8 additions & 6 deletions spec/install-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ describe 'apm install', ->

beforeEach ->
app = express()
app.get '/node/v0.10.3/node-v0.10.3.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v0.10.3.tar.gz')
app.get '/node/v0.10.3/node.lib', (request, response) ->
app.get '/node/v10.20.1/node-v10.20.1.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1.tar.gz')
app.get '/node/v10.20.1/node-v10.20.1-headers.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1-headers.tar.gz')
app.get '/node/v10.20.1/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node.lib')
app.get '/node/v0.10.3/x64/node.lib', (request, response) ->
app.get '/node/v10.20.1/x64/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node_x64.lib')
app.get '/node/v0.10.3/SHASUMS256.txt', (request, response) ->
app.get '/node/v10.20.1/SHASUMS256.txt', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'SHASUMS256.txt')
app.get '/test-module', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'install-test-module.json')
Expand Down Expand Up @@ -76,7 +78,7 @@ describe 'apm install', ->
process.env.ATOM_HOME = atomHome
process.env.ATOM_ELECTRON_URL = "http://localhost:3000/node"
process.env.ATOM_PACKAGES_URL = "http://localhost:3000/packages"
process.env.ATOM_ELECTRON_VERSION = 'v0.10.3'
process.env.ATOM_ELECTRON_VERSION = 'v10.20.1'
process.env.npm_config_registry = 'http://localhost:3000/'
live = true
waitsFor -> live
Expand Down
14 changes: 8 additions & 6 deletions spec/rebuild-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ describe 'apm rebuild', ->
silenceOutput()

app = express()
app.get '/node/v0.10.3/node-v0.10.3.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v0.10.3.tar.gz')
app.get '/node/v0.10.3/node.lib', (request, response) ->
app.get '/node/v10.20.1/node-v10.20.1.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1.tar.gz')
app.get '/node/v10.20.1/node-v10.20.1-headers.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1-headers.tar.gz')
app.get '/node/v10.20.1/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node.lib')
app.get '/node/v0.10.3/x64/node.lib', (request, response) ->
app.get '/node/v10.20.1/x64/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node_x64.lib')
app.get '/node/v0.10.3/SHASUMS256.txt', (request, response) ->
app.get '/node/v10.20.1/SHASUMS256.txt', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'SHASUMS256.txt')

server = http.createServer(app)
Expand All @@ -32,7 +34,7 @@ describe 'apm rebuild', ->
process.env.ATOM_HOME = atomHome
process.env.ATOM_ELECTRON_URL = "http://localhost:3000/node"
process.env.ATOM_PACKAGES_URL = "http://localhost:3000/packages"
process.env.ATOM_ELECTRON_VERSION = 'v0.10.3'
process.env.ATOM_ELECTRON_VERSION = 'v10.20.1'
process.env.ATOM_RESOURCE_PATH = temp.mkdirSync('atom-resource-path-')

originalPathEnv = process.env.PATH
Expand Down
14 changes: 8 additions & 6 deletions spec/stars-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ describe 'apm stars', ->
response.sendFile path.join(__dirname, 'fixtures', 'available.json')
app.get '/users/hubot/stars', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'stars.json')
app.get '/node/v0.10.3/node-v0.10.3.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v0.10.3.tar.gz')
app.get '/node/v0.10.3/node.lib', (request, response) ->
app.get '/node/v10.20.1/node-v10.20.1.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1.tar.gz')
app.get '/node/v10.20.1/node-v10.20.1-headers.tar.gz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node-v10.20.1-headers.tar.gz')
app.get '/node/v10.20.1/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node.lib')
app.get '/node/v0.10.3/x64/node.lib', (request, response) ->
app.get '/node/v10.20.1/x64/node.lib', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'node_x64.lib')
app.get '/node/v0.10.3/SHASUMS256.txt', (request, response) ->
app.get '/node/v10.20.1/SHASUMS256.txt', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'SHASUMS256.txt')
app.get '/tarball/test-module-1.2.0.tgz', (request, response) ->
response.sendFile path.join(__dirname, 'fixtures', 'test-module-1.2.0.tgz')
Expand All @@ -41,7 +43,7 @@ describe 'apm stars', ->
process.env.ATOM_API_URL = "http://localhost:3000"
process.env.ATOM_ELECTRON_URL = "http://localhost:3000/node"
process.env.ATOM_PACKAGES_URL = "http://localhost:3000/packages"
process.env.ATOM_ELECTRON_VERSION = 'v0.10.3'
process.env.ATOM_ELECTRON_VERSION = 'v10.20.1'
process.env.npm_config_registry = 'http://localhost:3000/'

live = true
Expand Down
2 changes: 1 addition & 1 deletion spec/upgrade-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe "apm upgrade", ->
process.env.ATOM_HOME = atomHome
process.env.ATOM_ELECTRON_URL = "http://localhost:3000/node"
process.env.ATOM_PACKAGES_URL = "http://localhost:3000/packages"
process.env.ATOM_ELECTRON_VERSION = 'v0.10.3'
process.env.ATOM_ELECTRON_VERSION = 'v10.20.1'
process.env.ATOM_RESOURCE_PATH = atomApp

fs.writeFileSync(path.join(atomApp, 'package.json'), JSON.stringify(version: '0.10.0'))
Expand Down

0 comments on commit 77227d8

Please sign in to comment.