Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
abca806f
Commit
abca806f
authored
Jun 30, 2016
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix invalid-node test
parent
b5001ae0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
binaries.sh
lib/binaries.sh
+4
-1
package.json
test/fixtures/invalid-node/package.json
+1
-1
run
test/run
+2
-2
No files found.
lib/binaries.sh
View file @
abca806f
...
@@ -18,7 +18,10 @@ install_nodejs() {
...
@@ -18,7 +18,10 @@ install_nodejs() {
echo
"Downloading and installing node
$version
..."
echo
"Downloading and installing node
$version
..."
local
download_url
=
"https://s3pository.heroku.com/node/v
$version
/node-v
$version
-
$os
-
$cpu
.tar.gz"
local
download_url
=
"https://s3pository.heroku.com/node/v
$version
/node-v
$version
-
$os
-
$cpu
.tar.gz"
curl
"
$download_url
"
--silent
--fail
--retry
5
--retry-max-time
15
-o
/tmp/node.tar.gz
||
(
echo
"Unable to download node
$version
; does it exist?"
&&
false
)
local
code
=
$(
curl
"
$download_url
"
--silent
--fail
--retry
5
--retry-max-time
15
-o
/tmp/node.tar.gz
--write-out
"%{http_code}"
)
if
[
"
$code
"
!=
"200"
]
;
then
echo
"Unable to download node
$version
; does it exist?"
&&
false
fi
tar
xzf /tmp/node.tar.gz
-C
/tmp
tar
xzf /tmp/node.tar.gz
-C
/tmp
rm
-rf
$dir
/
*
rm
-rf
$dir
/
*
mv
/tmp/node-v
$version
-
$os
-
$cpu
/
*
$dir
mv
/tmp/node-v
$version
-
$os
-
$cpu
/
*
$dir
...
...
test/fixtures/invalid-node/package.json
View file @
abca806f
...
@@ -9,6 +9,6 @@
...
@@ -9,6 +9,6 @@
"dependencies"
:
{
"dependencies"
:
{
},
},
"engines"
:
{
"engines"
:
{
"node"
:
"0.11.33"
"node"
:
"0.11.33
3
"
}
}
}
}
test/run
View file @
abca806f
...
@@ -201,8 +201,8 @@ testConcurrencySaneMaximum() {
...
@@ -201,8 +201,8 @@ testConcurrencySaneMaximum() {
testInvalidNode
()
{
testInvalidNode
()
{
compile
"invalid-node"
compile
"invalid-node"
assertCaptured
"Downloading and installing node 0.11.33"
assertCaptured
"Downloading and installing node 0.11.33
3
"
assertCaptured
"Unable to download node 0.11.33"
assertCaptured
"Unable to download node 0.11.33
3
"
assertCapturedError
assertCapturedError
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment