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
3740fae7
Commit
3740fae7
authored
Mar 04, 2015
by
Terence Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test for using cache_directories option in package.json
parent
0cdb3964
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
0 deletions
+38
-0
README.md
test/fixtures/cache-directories/README.md
+1
-0
bower.json
test/fixtures/cache-directories/bower.json
+6
-0
package.json
test/fixtures/cache-directories/package.json
+19
-0
run
test/run
+12
-0
No files found.
test/fixtures/cache-directories/README.md
0 → 100644
View file @
3740fae7
A fake README, to keep npm from polluting stderr.
\ No newline at end of file
test/fixtures/cache-directories/bower.json
0 → 100644
View file @
3740fae7
{
"name"
:
"node-buildpack-test-app"
,
"dependencies"
:
{
"jquery"
:
"^1.11.1"
}
}
test/fixtures/cache-directories/package.json
0 → 100644
View file @
3740fae7
{
"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"
},
"engines"
:
{
"node"
:
"0.10.18"
},
"dependencies"
:
{
"bower"
:
"1.3.12"
},
"scripts"
:
{
"postinstall"
:
"bower install --allow-root"
},
"cache_directories"
:
[
"bower_components"
,
"node_modules"
]
}
test/run
View file @
3740fae7
...
...
@@ -172,6 +172,18 @@ testBuildWithCache() {
assertCapturedSuccess
}
testBuildWithUserCacheDirectories
()
{
cache
=
$(
mktmpdir
)
compile
"cache-directories"
$cache
assertCapturedSuccess
assertEquals
"1"
"
$(
ls
-1
$cache
/node |
grep
bower_components |
wc
-l
)
"
assertEquals
"1"
"
$(
ls
-1
$cache
/node |
grep
node_modules |
wc
-l
)
"
compile
"cache-directories"
$cache
assertCaptured
"Loading user cache directory from cache: bower_components"
assertCapturedSuccess
}
testModulesCheckedIn
()
{
compile
"modules-checked-in"
assertCaptured
"node_modules source: prebuilt"
...
...
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