Commit 6a77ced9 authored by Hunter Loftis's avatar Hunter Loftis

updated tests for node 0.12 existing

parent 31a11645
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Running tests in docker (cedar-14)..." 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 ""
echo "Running tests in docker (cedar)..." 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;'
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
"url" : "http://github.com/example/example.git" "url" : "http://github.com/example/example.git"
}, },
"engines": { "engines": {
"node": ">0.11.0" "node": "0.11.x"
} }
} }
...@@ -18,6 +18,13 @@ testDetectWithoutPackageJson() { ...@@ -18,6 +18,13 @@ testDetectWithoutPackageJson() {
assertCapturedError 1 "" 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() { testBadJson() {
compile "bad-json" compile "bad-json"
assertCaptured "Build failed" assertCaptured "Build failed"
...@@ -61,12 +68,13 @@ testStableVersion() { ...@@ -61,12 +68,13 @@ testStableVersion() {
assertCapturedSuccess assertCapturedSuccess
} }
testUnstableVersion() {
compile "unstable-version"
assertCaptured "Resolving node version >0.11.0 via semver.io"
assertCaptured "Downloading and installing node 0.11"
assertCapturedSuccess
}
testOldNpm() { testOldNpm() {
compile "old-npm" compile "old-npm"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment