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
5177adea
Commit
5177adea
authored
Jan 31, 2017
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use lts range instead of latest
parent
9b4610ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
binaries.sh
lib/binaries.sh
+3
-2
run
test/run
+8
-8
No files found.
lib/binaries.sh
View file @
5177adea
...
...
@@ -35,11 +35,12 @@ install_yarn() {
}
install_nodejs
()
{
local
version
=
"
$1
"
local
user_
version
=
"
$1
"
local dir
=
"
$2
"
local
version
=
${
user_version
:-
6
.x
}
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 @
5177adea
#!/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