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
6a77ced9
Commit
6a77ced9
authored
Feb 07, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated tests for node 0.12 existing
parent
31a11645
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
docker
test/docker
+2
-2
package.json
test/fixtures/unstable-version/package.json
+1
-1
run
test/run
+14
-6
No files found.
test/docker
View file @
6a77ced9
#!/usr/bin/env bash
echo
"Running tests in docker (cedar-14)..."
docker run
-v
$(
pwd
)
:/buildpack:ro
-it
heroku/cedar:14 bash
-c
'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
docker run
-v
$(
pwd
)
:/buildpack:ro
-
-rm
-
it
heroku/cedar:14 bash
-c
'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
echo
""
echo
"Running tests in docker (cedar)..."
docker run
-v
$(
pwd
)
:/buildpack:ro
-it
fabiokung/cedar bash
-c
'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
docker run
-v
$(
pwd
)
:/buildpack:ro
-
-rm
-
it
fabiokung/cedar bash
-c
'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
test/fixtures/unstable-version/package.json
View file @
6a77ced9
...
...
@@ -7,6 +7,6 @@
"url"
:
"http://github.com/example/example.git"
},
"engines"
:
{
"node"
:
"
>0.11.0
"
"node"
:
"
0.11.x
"
}
}
test/run
View file @
6a77ced9
...
...
@@ -18,6 +18,13 @@ testDetectWithoutPackageJson() {
assertCapturedError 1
""
}
testUnstableVersion
()
{
compile
"unstable-version"
assertCaptured
"Resolving node version 0.11.x via semver.io"
assertCaptured
"Downloading and installing node 0.11"
assertCapturedSuccess
}
testBadJson
()
{
compile
"bad-json"
assertCaptured
"Build failed"
...
...
@@ -61,12 +68,13 @@ testStableVersion() {
assertCapturedSuccess
}
testUnstableVersion
()
{
compile
"unstable-version"
assertCaptured
"Resolving node version >0.11.0 via semver.io"
assertCaptured
"Downloading and installing node 0.11"
assertCapturedSuccess
}
testOldNpm
()
{
compile
"old-npm"
...
...
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