From 6f9aa3e545a2dbcef5519bdcd0bc08023558e86a Mon Sep 17 00:00:00 2001 From: James Ide Date: Wed, 24 Jun 2015 14:07:10 -0700 Subject: [PATCH] Add .travis.yml file for automatic test runs Run on Node 0.10 and 0.12 and io.js 1.x and 2.x. --- .travis.yml | 6 ++++++ test/stacktrace_parser_test.js | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..80ff4d1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "0.10" + - "0.12" + - "iojs-v2" + - "iojs-v1" diff --git a/test/stacktrace_parser_test.js b/test/stacktrace_parser_test.js index ba6ed09..83b4299 100644 --- a/test/stacktrace_parser_test.js +++ b/test/stacktrace_parser_test.js @@ -263,9 +263,11 @@ describe('StackTraceParser', function() { lineNumber: 110, column: 15 } ] }, - // io.js 2.3.0 + ], + 'io.js': [ + // io.js 2.4.0 { - from: "ReferenceError: test is not defined\n at repl:1:1\n at REPLServer.defaultEval (repl.js:154:27)\n at bound (domain.js:254:14)\n at REPLServer.runBound [as eval] (domain.js:267:12)\n at REPLServer. (repl.js:308:12)\n at emitOne (events.js:77:13)\n at REPLServer.emit (events.js:169:7)\n at REPLServer.Interface._onLine (readline.js:209:10)\n at REPLServer.Interface._line (readline.js:548:8)\n at REPLServer.Interface._ttyWrite (readline.js:825:14)", + from: "ReferenceError: test is not defined\n at repl:1:1\n at REPLServer.defaultEval (repl.js:154:27)\n at bound (domain.js:254:14)\n at REPLServer.runBound [as eval] (domain.js:267:12)\n at REPLServer. (repl.js:308:12)\n at emitOne (events.js:77:13)\n at REPLServer.emit (events.js:169:7)\n at REPLServer.Interface._onLine (readline.js:210:10)\n at REPLServer.Interface._line (readline.js:549:8)\n at REPLServer.Interface._ttyWrite (readline.js:826:14)", to: [ { file: 'repl', methodName: '', lineNumber: 1, @@ -296,15 +298,15 @@ describe('StackTraceParser', function() { column: 7 }, { file: 'readline.js', methodName: 'REPLServer.Interface._onLine', - lineNumber: 209, + lineNumber: 210, column: 10 }, { file: 'readline.js', methodName: 'REPLServer.Interface._line', - lineNumber: 548, + lineNumber: 549, column: 8 }, { file: 'readline.js', methodName: 'REPLServer.Interface._ttyWrite', - lineNumber: 825, + lineNumber: 826, column: 14 } ] }, ]