Commit b43097fd authored by Zeke Sikelianos's avatar Zeke Sikelianos

Merge pull request #56 from heroku/pipefail

use pipefail to force exit when `npm install` fails.
parents 5bc02d22 b82b5bf0
#!/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
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment