aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-06-13 06:21:16 +0800
committerGitHub <noreply@github.com>2017-06-13 06:21:16 +0800
commit3dc9e140e4300f1b3f4f9fa3744bf579163ad204 (patch)
tree567fefe71f18cacc560c95e36fb534f171381580
parentfed009655623705f44f12f62ef2ecd7d9be86d86 (diff)
downloadtracifyjs-3dc9e140e4300f1b3f4f9fa3744bf579163ad204.tar.gz
tracifyjs-3dc9e140e4300f1b3f4f9fa3744bf579163ad204.zip
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
-rw-r--r--.travis.yml1
-rw-r--r--test/jetstream.js1
-rw-r--r--test/mocha/release.js6
3 files changed, 3 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index cdee4301..968addfc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,7 @@ node_js:
- "0.12"
- "4"
- "6"
+ - "8"
env:
- UGLIFYJS_TEST_ALL=1
matrix:
diff --git a/test/jetstream.js b/test/jetstream.js
index 8279975c..a1b041a8 100644
--- a/test/jetstream.js
+++ b/test/jetstream.js
@@ -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);
});
});
}
diff --git a/test/mocha/release.js b/test/mocha/release.js
index 9f894b3d..bd1154ad 100644
--- a/test/mocha/release.js
+++ b/test/mocha/release.js
@@ -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();
});