aboutsummaryrefslogtreecommitdiff
path: root/test/travis-ufuzz.js
diff options
context:
space:
mode:
authoralexlamsl <alexlamsl@gmail.com>2018-07-13 02:05:52 +0800
committeralexlamsl <alexlamsl@gmail.com>2018-07-13 02:05:52 +0800
commit34a0ab6f2c7b051754794d252d5e30463cb06c07 (patch)
tree2a58ed6f1928e512d4378b8e86ef100764572f49 /test/travis-ufuzz.js
parentbcebacbb9e7ddac7d9c0e4ca2c7e0faf0e0bca7c (diff)
downloadtracifyjs-34a0ab6f2c7b051754794d252d5e30463cb06c07.tar.gz
tracifyjs-34a0ab6f2c7b051754794d252d5e30463cb06c07.zip
improve fuzzing on Travis CI
Diffstat (limited to 'test/travis-ufuzz.js')
-rw-r--r--test/travis-ufuzz.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/travis-ufuzz.js b/test/travis-ufuzz.js
index 36d1fc18..92268420 100644
--- a/test/travis-ufuzz.js
+++ b/test/travis-ufuzz.js
@@ -15,6 +15,7 @@ if (process.argv[2] == "run") {
var branch = process.argv[3] || "v" + require("../package.json").version;
var repository = encodeURIComponent(process.argv[4] || "mishoo/UglifyJS2");
var concurrency = process.argv[5] || 1;
+ var platform = process.argv[6] || "node/latest";
(function request() {
setTimeout(request, (period + wait) / concurrency);
var options = url.parse("https://api.travis-ci.org/repo/" + repository + "/requests");
@@ -32,20 +33,18 @@ if (process.argv[2] == "run") {
res.on("data", console.log);
}).on("error", console.error).end(JSON.stringify({
request: {
- message: "ufuzz testing (when idle)",
+ message: "ufuzz testing",
branch: branch,
config: {
- merge_mode: "replace",
- language: "node_js",
- node_js: "9",
- sudo: false,
+ cache: false,
+ env: "NODEJS_VER=" + platform,
script: "node test/travis-ufuzz run"
}
}
}));
})();
} else {
- console.log("Usage: test/travis-ufuzz.js <token> [branch] [repository] [concurrency]");
+ console.log("Usage: test/travis-ufuzz.js <token> [branch] [repository] [concurrency] [platform]");
}
function spawn(endTime) {