[Pkg-javascript-commits] [uglifyjs] 429/491: improve `test/travis-ufuzz.js` (#2789)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:52:00 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit 7def684730ad3a684e64963961f3b33b308fd95d
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date:   Mon Jan 15 19:18:21 2018 +0800

    improve `test/travis-ufuzz.js` (#2789)
    
    - wait for instance to boot
    - run on forked repositories
    - workaround `request_limit_reached`
---
 test/travis-ufuzz.js | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/test/travis-ufuzz.js b/test/travis-ufuzz.js
index 0ed7682..8685732 100644
--- a/test/travis-ufuzz.js
+++ b/test/travis-ufuzz.js
@@ -1,12 +1,15 @@
 "use strict";
 
-var period = 20 * 60 * 1000;
+var period = 45 * 60 * 1000;
+var wait = 2 * 60 * 1000;
+var ping = 5 * 60 * 1000;
 if (process.argv.length > 2) {
     var token = process.argv[2];
     var branch = process.argv[3] || "v" + require("../package.json").version;
+    var project = encodeURIComponent(process.argv[4] || "mishoo/UglifyJS2");
     (function init() {
-        setTimeout(init, period);
-        var options = require("url").parse("https://api.travis-ci.org/repo/mishoo%2FUglifyJS2/requests");
+        setTimeout(init, period + wait);
+        var options = require("url").parse("https://api.travis-ci.org/repo/" + project + "/requests");
         options.method = "POST";
         options.headers = {
             "Content-Type": "application/json",
@@ -51,7 +54,7 @@ if (process.argv.length > 2) {
         var end = line.lastIndexOf("\r");
         console.log(line.slice(line.lastIndexOf("\r", end - 1) + 1, end));
         line = line.slice(end + 1);
-    }, 5 * 60 * 1000);
+    }, ping);
     setTimeout(function() {
         clearInterval(keepAlive);
         child.kill();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list