diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..94c28c09 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "0.10" + +script: + - grunt test diff --git a/tests/test.js b/tests/test.js index a8d0e0cc..a50f3d8f 100644 --- a/tests/test.js +++ b/tests/test.js @@ -10,4 +10,7 @@ test.print = function(print) { print(test.failures[i].toString()) } print("tests: " + test.total + "\nfailures: " + test.failures.length) -} \ No newline at end of file + if (test.failures.length > 0) { + throw new Error(test.failures.length + " tests did not pass.") + } +}