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
bb9f8611
Commit
bb9f8611
authored
Jan 12, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #177 from heroku/always-show-npm-version
test and implementation for always showing npm version
parents
7784b44b
6d2db2ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
15 deletions
+18
-15
test
bin/test
+16
-15
build.sh
lib/build.sh
+2
-0
No files found.
bin/test
View file @
bb9f8611
...
...
@@ -31,6 +31,7 @@ testSpecificVersion() {
compile
"specific-version"
assertNotCaptured
"Resolving node version"
assertCaptured
"Downloading and installing node 0.10.29"
assertCaptured
"Using default npm version: 1.4.14"
assertCapturedSuccess
}
...
...
@@ -66,6 +67,21 @@ testSameNpm() {
assertCapturedSuccess
}
testNpmVersionRange
()
{
compile
"npm-version-range"
assertCaptured
"Resolving npm version"
assertCaptured
"installing npm 1.4."
assertCapturedSuccess
}
testNpmVersionSpecific
()
{
compile
"npm-version-specific"
assertCaptured
"installing npm 2.1.11"
assertNotCaptured
"Resolving npm version"
assertNotCaptured
"WARNING"
assertCapturedSuccess
}
testFailingBuild
()
{
compile
"failing-build"
assertCaptured
"Build failed"
...
...
@@ -301,21 +317,6 @@ testShrinkwrap() {
assertCapturedSuccess
}
testNpmVersionRange
()
{
compile
"npm-version-range"
assertCaptured
"Resolving npm version"
assertCaptured
"installing npm 1.4."
assertCapturedSuccess
}
testNpmVersionSpecific
()
{
compile
"npm-version-specific"
assertCaptured
"installing npm 2.1.11"
assertNotCaptured
"Resolving npm version"
assertNotCaptured
"WARNING"
assertCapturedSuccess
}
testProfileExport
()
{
compile
"stable-node"
assertCaptured
"Creating runtime environment"
...
...
lib/build.sh
View file @
bb9f8611
...
...
@@ -99,6 +99,8 @@ install_npm() {
npm
install
--quiet
-g
npm@
$npm_engine
2>&1
>
/dev/null | indent
fi
warn_old_npm
`
npm
--version
`
else
info
"Using default npm version:
`
npm
--version
`
"
fi
}
...
...
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