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
b43097fd
Commit
b43097fd
authored
Oct 16, 2013
by
Zeke Sikelianos
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #56 from heroku/pipefail
use pipefail to force exit when `npm install` fails.
parents
5bc02d22
b82b5bf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
compile
bin/compile
+3
-5
test
bin/test
+5
-0
No files found.
bin/compile
View file @
b43097fd
#!/usr/bin/env bash
#!/usr/bin/env bash
# fail fast
set
-e
# fail fast
set
-e
set
-o
pipefail
# don't ignore piped exit codes
# set -x # enable debugging
# enable debugging
# set -x
# Configure directories
# Configure directories
build_dir
=
$1
build_dir
=
$1
...
...
bin/test
View file @
b43097fd
...
@@ -66,6 +66,11 @@ testProfileCreated() {
...
@@ -66,6 +66,11 @@ testProfileCreated() {
assertCapturedSuccess
assertCapturedSuccess
}
}
testInvalidDependency
()
{
compile
"invalid-dependency"
assertCapturedError 1
"not in the npm registry"
}
testNodeModulesCached
()
{
testNodeModulesCached
()
{
cache
=
$(
mktmpdir
)
cache
=
$(
mktmpdir
)
compile
"caching"
$cache
compile
"caching"
$cache
...
...
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