Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add: travis config; make test runner return exit code 1 on < 100% suc…

…cess
  • Loading branch information...
commit e7e0ae3bac6ae5fd6e84db10e8c5f86b1f4e9193 1 parent a993255
@tmpvar authored
Showing with 8 additions and 0 deletions.
  1. +3 −0  .travis.yml
  2. +5 −0 test/runner
View
3  .travis.yml
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - 0.8
View
5 test/runner
@@ -272,6 +272,11 @@ nodeunit.runModules(modulesToRun, {
}
console.log('TOTALS: %s failed; %s success', ratio, percent);
console.log('TIME: %dms', duration);
+
+ if (passedTests !== totalTests) {
+ process.exit(1);
+ }
+
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.