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
d036bbe1
Commit
d036bbe1
authored
Sep 10, 2013
by
Zeke Sikelianos
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #45 from ddollar/diet
Always set node_version
parents
ef57f219
d4e8ad92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
compile
bin/compile
+2
-1
test
bin/test
+2
-1
No files found.
bin/compile
View file @
d036bbe1
...
@@ -35,6 +35,7 @@ else
...
@@ -35,6 +35,7 @@ else
if
test
$default_satisfies
;
then
if
test
$default_satisfies
;
then
status
"Using latest stable node version
$stable_version
"
status
"Using latest stable node version
$stable_version
"
node_version
=
$stable_version
else
else
# Find all available versions from nodejs.org/dist
# Find all available versions from nodejs.org/dist
args
=
""
args
=
""
...
@@ -90,4 +91,4 @@ fi
...
@@ -90,4 +91,4 @@ fi
# Update the PATH
# Update the PATH
status
"Building runtime environment"
status
"Building runtime environment"
mkdir
-p
$build_dir
/.profile.d
mkdir
-p
$build_dir
/.profile.d
echo
"export PATH=
\"\$
HOME/node/bin:
$HOME
/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
>
$build_dir
/.profile.d/nodejs.sh
echo
"export PATH=
\"\$
HOME/node/bin:
$HOME
/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
>
$build_dir
/.profile.d/nodejs.sh
\ No newline at end of file
bin/test
View file @
d036bbe1
...
@@ -54,6 +54,7 @@ testProfileCreated() {
...
@@ -54,6 +54,7 @@ testProfileCreated() {
testNodeModulesCached
()
{
testNodeModulesCached
()
{
cache
=
$(
mktmpdir
)
cache
=
$(
mktmpdir
)
compile
"node-modules-caching"
$cache
compile
"node-modules-caching"
$cache
assertCaptured
"Caching node_modules for future builds"
assertEquals
"1"
"
$(
ls
-1
$cache
/node_modules/0.10.18 |
wc
-l
)
"
assertEquals
"1"
"
$(
ls
-1
$cache
/node_modules/0.10.18 |
wc
-l
)
"
}
}
...
@@ -88,4 +89,4 @@ assertFile() {
...
@@ -88,4 +89,4 @@ assertFile() {
assertEquals
"
$1
"
"
$(
cat
${
COMPILE_DIR
}
/
$2
)
"
assertEquals
"
$1
"
"
$(
cat
${
COMPILE_DIR
}
/
$2
)
"
}
}
source
${
BASE
}
/vendor/shunit2/shunit2
source
${
BASE
}
/vendor/shunit2/shunit2
\ No newline at end of file
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