Commit b82b5bf0 authored by zeke's avatar zeke

use pipefail to force exit when `npm install` fails.

parent 5bc02d22
#!/usr/bin/env bash
# fail fast
set -e
# enable debugging
# set -x
set -e # fail fast
set -o pipefail # don't ignore piped exit codes
# set -x # enable debugging
# Configure directories
build_dir=$1
......
......@@ -66,6 +66,11 @@ testProfileCreated() {
assertCapturedSuccess
}
testInvalidDependency() {
compile "invalid-dependency"
assertCapturedError 1 "not in the npm registry"
}
testNodeModulesCached() {
cache=$(mktmpdir)
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