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
4fbaca42
Commit
4fbaca42
authored
Dec 10, 2014
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix shrinkwrap test; update multibp export
parent
269dd87b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
15 deletions
+18
-15
compile
bin/compile
+4
-6
test
bin/test
+7
-5
npm-shrinkwrap.json
test/shrinkwrap/npm-shrinkwrap.json
+3
-3
package.json
test/shrinkwrap/package.json
+1
-1
package.json
test/stable-node/package.json
+3
-0
No files found.
bin/compile
View file @
4fbaca42
...
...
@@ -176,12 +176,10 @@ status "Building runtime environment"
mkdir
-p
$build_dir
/.profile.d
# Runtime & Multi-buildpack exports
export_path
=
"export PATH=
\"\$
HOME/.heroku/node/bin:
\$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
export_home
=
"export NODE_HOME=
\"\$
HOME/.heroku/node
\"
"
echo
$export_path
>
$build_dir
/.profile.d/nodejs.sh
echo
$export_home
>>
$build_dir
/.profile.d/nodejs.sh
echo
$export_path
>
$bp_dir
/export
echo
$export_home
>>
$bp_dir
/export
echo
"export PATH=
\"\$
HOME/.heroku/node/bin:
\$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
>
$build_dir
/.profile.d/nodejs.sh
echo
"export NODE_HOME=
\"\$
HOME/.heroku/node
\"
"
>>
$build_dir
/.profile.d/nodejs.sh
echo
"export PATH=
\"
$build_dir
/.heroku/node/bin:
$build_dir
/node_modules/.bin:
\$
PATH
\"
"
>
$bp_dir
/export
echo
"export NODE_HOME=
\"
$build_dir
/.heroku/node
\"
"
>>
$bp_dir
/export
####### Clean up
...
...
bin/test
View file @
4fbaca42
...
...
@@ -31,6 +31,7 @@ testSpecificVersion() {
testStableVersion
()
{
compile
"stable-node"
assertCaptured
"Downloading and installing node 0.10"
assertNotCaptured
"PRO TIP"
assertCapturedSuccess
}
...
...
@@ -208,9 +209,7 @@ testNpmrc() {
testShrinkwrap
()
{
compile
"shrinkwrap"
assertCaptured
"express@4.10.4"
assertCaptured
"mime-db@1.2.0"
assertCaptured
"etag@1.5.1"
assertCaptured
"lodash@2.4.1"
assertCaptured
"lodash@2.4.0"
assertNotCaptured
"mocha"
assertCapturedSuccess
}
...
...
@@ -239,8 +238,11 @@ testProfileExport() {
testMultiExport
()
{
compile
"stable-node"
assertFileContains
"export PATH=
\"\$
HOME/.heroku/node/bin:
\$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
"
${
bp_dir
}
/export"
assertFileContains
"export NODE_HOME=
\"\$
HOME/.heroku/node
\"
"
"
${
bp_dir
}
/export"
assertFileContains
"export PATH="
"
${
bp_dir
}
/export"
assertFileContains
"/.heroku/node/bin:"
"
${
bp_dir
}
/export"
assertFileContains
"/node_modules/.bin:
\$
PATH"
"
${
bp_dir
}
/export"
assertFileContains
"export NODE_HOME="
"
${
bp_dir
}
/export"
assertFileContains
"/.heroku/node
\"
"
"
${
bp_dir
}
/export"
assertCapturedSuccess
}
...
...
test/shrinkwrap/npm-shrinkwrap.json
View file @
4fbaca42
...
...
@@ -213,9 +213,9 @@
}
},
"lodash"
:
{
"version"
:
"2.4.
1
"
,
"from"
:
"lodash@2.4.
1
"
,
"resolved"
:
"https://registry.npmjs.org/lodash/-/lodash-2.4.
1
.tgz"
"version"
:
"2.4.
0
"
,
"from"
:
"lodash@2.4.
0
"
,
"resolved"
:
"https://registry.npmjs.org/lodash/-/lodash-2.4.
0
.tgz"
}
}
}
test/shrinkwrap/package.json
View file @
4fbaca42
...
...
@@ -8,7 +8,7 @@
},
"dependencies"
:
{
"express"
:
"4.10.4"
,
"lodash"
:
"
2.4.1
"
"lodash"
:
"
^2.4.0
"
},
"engines"
:
{
"node"
:
"~0.10.0"
...
...
test/stable-node/package.json
View file @
4fbaca42
...
...
@@ -11,5 +11,8 @@
},
"engines"
:
{
"node"
:
"~0.10.0"
},
"scripts"
:
{
"start"
:
"node foo.js"
}
}
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