Commit 222ae73a authored by Hunter Loftis's avatar Hunter Loftis

Merge branch 'master' into friendly-failures

parents bbb47189 3f79098d
## v73 (24/4/2015)
- Patch for caching to disable cache restoration if node_modules already exists (eg from being git submoduled or checked into git)
## v72 (23/4/2015)
* Accepts `cacheDirectories` array in package.json to override default `node_modules` caching
......@@ -170,7 +170,6 @@ install_npm() {
}
function build_dependencies() {
restore_cache
if [ "$modules_source" == "" ]; then
info "Skipping dependencies (no source for node_modules)"
......@@ -182,6 +181,7 @@ function build_dependencies() {
npm install --unsafe-perm --quiet --userconfig $build_dir/.npmrc 2>&1 | indent
else
restore_cache
info "Installing node modules"
npm install --unsafe-perm --quiet --userconfig $build_dir/.npmrc 2>&1 | indent
fi
......
......@@ -218,7 +218,11 @@ testBuildWithUserCacheDirectoriesCamel() {
}
testModulesCheckedIn() {
compile "modules-checked-in"
cache=$(mktmpdir)
compile "modules-checked-in" $cache
assertCapturedSuccess
compile "modules-checked-in" $cache
assertCaptured "node_modules source: prebuilt"
assertCaptured "Rebuilding any native modules for this architecture"
assertCaptured "(preinstall script)"
......
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