diff --git a/.travis.yml b/.travis.yml index 667213d2e..b8aed37d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: - 0.6 - - 0.8 + - 0.9 git: depth: 1 branches: diff --git a/test/test-build.js b/test/test-build.js index c8927b951..fe666ec17 100644 --- a/test/test-build.js +++ b/test/test-build.js @@ -1214,7 +1214,9 @@ /*--------------------------------------------------------------------------*/ if (isFinite(timeLimit)) { - setTimeout(process.exit, timeLimit * 6e4); + setTimeout(function() { + process.exit(QUnit.config.stats.bad ? 1 : 0); + }, timeLimit * 6e4); } // explicitly call `QUnit.start()` for Narwhal, Node.js, Rhino, and RingoJS if (!global.document) {