aboutsummaryrefslogtreecommitdiff
path: root/test/release/run.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-05-11 22:03:41 +0800
committeralexlamsl <alexlamsl>2019-05-11 22:06:14 +0800
commite88c439eacf0715991e50e1cc664e29af88ee7ab (patch)
tree5abd6a4da91dc3c94137287fcc69a1cb497d25db /test/release/run.js
parent9fc8cd40763467d8b256be00380965268b7afcfd (diff)
downloadtracifyjs-e88c439eacf0715991e50e1cc664e29af88ee7ab.tar.gz
tracifyjs-e88c439eacf0715991e50e1cc664e29af88ee7ab.zip
improve tests (#3405)
Diffstat (limited to 'test/release/run.js')
-rw-r--r--test/release/run.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/release/run.js b/test/release/run.js
new file mode 100644
index 00000000..7b4755dc
--- /dev/null
+++ b/test/release/run.js
@@ -0,0 +1,16 @@
+var child_process = require("child_process");
+
+module.exports = function(tasks) {
+ (function next() {
+ if (!tasks.length) return;
+ var args = tasks.shift();
+ console.log();
+ console.log("\u001B[36m$> " + args.join(" ") + "\u001B[39m");
+ var result = child_process.spawn(process.argv[0], args, {
+ stdio: [ "ignore", 1, 2 ]
+ }).on("exit", function(code) {
+ if (code != 0) process.exit(code);
+ next();
+ });
+ })();
+};