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
991ceb99
Commit
991ceb99
authored
Dec 08, 2013
by
Michael Rykov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for custom .npmrc support
parent
f6d0b9c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
1 deletion
+31
-1
test
bin/test
+8
-1
.npmrc
test/userconfig/.npmrc
+7
-0
README.md
test/userconfig/README.md
+1
-0
package.json
test/userconfig/package.json
+15
-0
No files found.
bin/test
View file @
991ceb99
...
@@ -84,6 +84,13 @@ testModulesCheckedIn() {
...
@@ -84,6 +84,13 @@ testModulesCheckedIn() {
assertCapturedSuccess
assertCapturedSuccess
}
}
testUserConfig
()
{
compile
"userconfig"
assertCaptured
"https://www.google.com/"
assertCaptured
"registry error"
assertCapturedError 1
""
}
# Pending Tests
# Pending Tests
# testNodeBinariesAddedToPath() {
# testNodeBinariesAddedToPath() {
...
@@ -135,7 +142,7 @@ compile_dir=""
...
@@ -135,7 +142,7 @@ compile_dir=""
compile
()
{
compile
()
{
compile_dir
=
$(
mktmpdir
)
compile_dir
=
$(
mktmpdir
)
cp
-r
${
bp_dir
}
/test/
$1
/
*
${
compile_dir
}
/
cp
-r
${
bp_dir
}
/test/
$1
/
.
${
compile_dir
}
capture
${
bp_dir
}
/bin/compile
${
compile_dir
}
${
2
:-$(
mktmpdir
)}
capture
${
bp_dir
}
/bin/compile
${
compile_dir
}
${
2
:-$(
mktmpdir
)}
}
}
...
...
test/userconfig/.npmrc
0 → 100644
View file @
991ceb99
; Any URL that throws 404s
registry = "https://www.google.com/"
strict-ssl = false
; Ensure fast failure
fetch-retries = 0
fetch-retry-factor = 0
fetch-retry-mintimeout = 0
test/userconfig/README.md
0 → 100644
View file @
991ceb99
A fake README, to keep npm from polluting stderr.
\ No newline at end of file
test/userconfig/package.json
0 → 100644
View file @
991ceb99
{
"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"
},
"dependencies"
:
{
"something-not-in-cache"
:
"*"
},
"engines"
:
{
"node"
:
"~0.10.0"
}
}
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