Merge pull request #24 from eiriksm/travis

Travis integration
This commit is contained in:
Leo Horie 2014-03-25 21:29:23 -04:00
commit 54b024ecbf
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 + " tests did not pass.")
}
}