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
6211e056
Commit
6211e056
authored
Jan 08, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #168 from heroku/new-announcement
New announcement
parents
70e997a9
b1c0e1d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
compile
bin/compile
+7
-0
test
bin/test
+7
-0
package.json
test/failing-build/package.json
+18
-0
No files found.
bin/compile
View file @
6211e056
...
...
@@ -26,6 +26,13 @@ build_failed() {
head
"Build failed"
echo
""
cat
$warnings
| indent
info
"We're sorry this build is failing! If you can't find the issue in application code,"
info
"please submit a ticket so we can help: https://help.heroku.com/"
info
"You can also try reverting to our legacy Node.js buildpack:"
info
"heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs#v63"
info
""
info
"Love,"
info
"Heroku"
}
trap
build_failed ERR
...
...
bin/test
View file @
6211e056
...
...
@@ -54,6 +54,13 @@ testOldNpm() {
assertCapturedSuccess
}
testFailingBuild
()
{
compile
"failing-build"
assertCaptured
"Build failed"
assertCaptured
"We're sorry this build is failing"
assertCapturedError 1
""
}
testInfoEmpty
()
{
compile
"info-empty"
assertCaptured
"Node engine: unspecified"
...
...
test/failing-build/package.json
0 → 100644
View file @
6211e056
{
"name"
:
"node-buildpack-test-app"
,
"version"
:
"0.0.1"
,
"description"
:
"node buildpack integration test app"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"http://github.com/example/example.git"
},
"dependencies"
:
{
"hashish"
:
"*"
},
"engines"
:
{
"node"
:
"0.10.x"
},
"scripts"
:
{
"postinstall"
:
"exit 1"
}
}
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