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
3dc769ac
Commit
3dc769ac
authored
Jan 31, 2017
by
Hunter Loftis
Committed by
GitHub
Jan 31, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #369 from heroku/use-lts-range
use lts range instead of latest
parents
9b4610ed
d05cf2c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
binaries.sh
lib/binaries.sh
+2
-2
run
test/run
+8
-8
No files found.
lib/binaries.sh
View file @
3dc769ac
...
...
@@ -35,11 +35,11 @@ install_yarn() {
}
install_nodejs
()
{
local
version
=
"
$1
"
local
version
=
${
1
:-
6
.x
}
local dir
=
"
$2
"
if
needs_resolution
"
$version
"
;
then
echo
"Resolving node version
$
{
version
:-
(latest stable)
}
via semver.io..."
echo
"Resolving node version
$
version
via semver.io..."
local
version
=
$(
curl
--silent
--get
--retry
5
--retry-max-time
15
--data-urlencode
"range=
${
version
}
"
https://semver.herokuapp.com/node/resolve
)
fi
...
...
test/run
View file @
3dc769ac
#!/usr/bin/env bash
# See README.md for info on running these tests.
testNoVersion
()
{
compile
"no-version"
assertCaptured
"engines.node (package.json): unspecified"
assertCaptured
"Resolving node version 6.x via semver.io"
assertCaptured
"Downloading and installing node 6."
assertCapturedSuccess
}
testDisableCache
()
{
cache
=
$(
mktmpdir
)
env_dir
=
$(
mktmpdir
)
...
...
@@ -300,14 +308,6 @@ testIoJs() {
assertCapturedSuccess
}
testNoVersion
()
{
compile
"no-version"
assertCaptured
"engines.node (package.json): unspecified"
assertCaptured
"Resolving node version (latest stable) via semver.io"
assertCaptured
"Downloading and installing node 6."
assertCapturedSuccess
}
testSpecificVersion
()
{
compile
"specific-version"
assertNotCaptured
"Resolving node version"
...
...
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