Make tests throw exception, add travis-ci integration.

Relates to #23.
This commit is contained in:
Eirik S. Morland 2014-03-23 08:42:15 +01:00
parent 72b6604cbc
commit a8d6f529d5
2 changed files with 10 additions and 1 deletions

6
.travis.yml Normal file
View file

@ -0,0 +1,6 @@
language: node_js
node_js:
- "0.10"
script:
- grunt test

View file

@ -10,4 +10,7 @@ test.print = function(print) {
print(test.failures[i].toString())
}
print("tests: " + test.total + "\nfailures: " + test.failures.length)
}
if (test.failures.length > 0) {
throw new Error(test.failures.length + " test did not pass.")
}
}