From 4027f87717bb68c309bd5e41e42607cffe624f35 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Thu, 14 Nov 2019 03:36:23 +0800 Subject: migrate to GitHub Actions (#3586) --- test/ufuzz/travis.js | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 test/ufuzz/travis.js (limited to 'test/ufuzz') 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 [branch] [repository] [concurrency] [platform]"); -} -- cgit v1.2.3