diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-11-14 03:36:23 +0800 |
---|---|---|
committer | alexlamsl <alexlamsl@gmail.com> | 2019-11-14 10:48:32 +0800 |
commit | 4027f87717bb68c309bd5e41e42607cffe624f35 (patch) | |
tree | 8c7256a2966bafd069b7824a208ab968d389a095 /test/ufuzz | |
parent | 910799ca9921ed435df3fd149a1fb2ab77dedbc5 (diff) | |
download | tracifyjs-4027f87717bb68c309bd5e41e42607cffe624f35.tar.gz tracifyjs-4027f87717bb68c309bd5e41e42607cffe624f35.zip |
migrate to GitHub Actions (#3586)
Diffstat (limited to 'test/ufuzz')
-rw-r--r-- | test/ufuzz/travis.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/test/ufuzz/travis.js b/test/ufuzz/travis.js deleted file mode 100644 index 0c1b8c7c..00000000 --- a/test/ufuzz/travis.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; - -var child_process = require("child_process"); -var https = require("https"); -var url = require("url"); - -var period = 45 * 60 * 1000; -var wait = 2 * 60 * 1000; -if (process.argv.length > 2) { - var token = process.argv[2]; - 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] || "latest"; - (function request() { - setTimeout(request, (period + wait) / concurrency); - var options = url.parse("https://api.travis-ci.org/repo/" + repository + "/requests"); - options.method = "POST"; - options.headers = { - "Content-Type": "application/json", - "Travis-API-Version": 3, - "Authorization": "token " + token - }; - https.request(options, function(res) { - console.log("HTTP", res.statusCode); - console.log(JSON.stringify(res.headers, null, 2)); - console.log(); - res.setEncoding("utf8"); - res.on("data", console.log); - }).on("error", console.error).end(JSON.stringify({ - request: { - message: "ufuzz testing", - branch: branch, - config: { - cache: false, - env: "NODE=" + platform, - script: "node test/ufuzz/job " + period - } - } - })); - })(); -} else { - console.log("Usage: test/ufuzz/travis.js <token> [branch] [repository] [concurrency] [platform]"); -} |