add Node.js 8 to Travis CI (#2086)

- explicitly terminate `test/jetstream.js` upon completion
- log verbose output from `test/benchmark.js` & `test/jetstream.js`
- remove obsolete workaround for Travis CI
This commit is contained in:
Alex Lam S.L
2017-06-13 06:21:16 +08:00
committed by GitHub
parent fed0096556
commit 3dc9e140e4
3 changed files with 3 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ node_js:
- "0.12"
- "4"
- "6"
- "8"
env:
- UGLIFYJS_TEST_ALL=1
matrix:

View File

@@ -64,6 +64,7 @@ if (typeof phantom == "undefined") {
server.close();
if (code) throw new Error("JetStream failed!");
console.log("JetStream completed successfully.");
process.exit(0);
});
});
}

View File

@@ -4,13 +4,9 @@ var spawn = require("child_process").spawn;
if (!process.env.UGLIFYJS_TEST_ALL) return;
function run(command, args, done) {
var id = setInterval(function() {
process.stdout.write("\0");
}, 5 * 60 * 1000);
spawn(command, args, {
stdio: "ignore"
stdio: [ "ignore", 1, 2 ]
}).on("exit", function(code) {
clearInterval(id);
assert.strictEqual(code, 0);
done();
});