Skip to content

Commit

Permalink
Fixed return code for tests; Added travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ridgway committed Aug 16, 2012
1 parent 00ccd26 commit 70ad87e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
@@ -0,0 +1,16 @@
language: node_js
node_js:
- 0.8
- 0.6
- 0.4
notifications:
email:
recipients:
- "devel-mojito@yahoo-inc.com"
on_success: change
on_failure: always
irc:
channels:
- "irc.freenode.org#mojito"
on_success: change
on_failure: always
5 changes: 5 additions & 0 deletions tests/unit.js
Expand Up @@ -414,4 +414,9 @@ suite.add(new Y.Test.Case({


Y.Test.Runner.add(suite);
Y.Test.Runner.subscribe(Y.Test.Runner.COMPLETE_EVENT, function (results) {
if (results.results.failed > 0 || results.results.errors > 0) {
process.exit(1);
}
});
Y.Test.Runner.run();

0 comments on commit 70ad87e

Please sign in to comment.