mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Update builds and add tunnelId to saucelabs.js.
This commit is contained in:
2
dist/lodash.compat.js
vendored
2
dist/lodash.compat.js
vendored
@@ -6253,7 +6253,7 @@
|
|||||||
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||||
*
|
*
|
||||||
* For more information on precompiling templates see:
|
* For more information on precompiling templates see:
|
||||||
* http://lodash.com/#custom-builds
|
* http://lodash.com/custom-builds
|
||||||
*
|
*
|
||||||
* For more information on Chrome extension sandboxes see:
|
* For more information on Chrome extension sandboxes see:
|
||||||
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
||||||
|
|||||||
2
dist/lodash.js
vendored
2
dist/lodash.js
vendored
@@ -5914,7 +5914,7 @@
|
|||||||
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||||
*
|
*
|
||||||
* For more information on precompiling templates see:
|
* For more information on precompiling templates see:
|
||||||
* http://lodash.com/#custom-builds
|
* http://lodash.com/custom-builds
|
||||||
*
|
*
|
||||||
* For more information on Chrome extension sandboxes see:
|
* For more information on Chrome extension sandboxes see:
|
||||||
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
||||||
|
|||||||
2
dist/lodash.underscore.js
vendored
2
dist/lodash.underscore.js
vendored
@@ -4345,7 +4345,7 @@
|
|||||||
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||||
*
|
*
|
||||||
* For more information on precompiling templates see:
|
* For more information on precompiling templates see:
|
||||||
* http://lodash.com/#custom-builds
|
* http://lodash.com/custom-builds
|
||||||
*
|
*
|
||||||
* For more information on Chrome extension sandboxes see:
|
* For more information on Chrome extension sandboxes see:
|
||||||
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
||||||
|
|||||||
@@ -8,9 +8,13 @@
|
|||||||
SauceTunnel = require('sauce-tunnel'),
|
SauceTunnel = require('sauce-tunnel'),
|
||||||
url = require('url');
|
url = require('url');
|
||||||
|
|
||||||
|
var attempts = -1,
|
||||||
|
prevLine = '';
|
||||||
|
|
||||||
var port = 8081,
|
var port = 8081,
|
||||||
username = process.env.SAUCE_USERNAME,
|
username = process.env.SAUCE_USERNAME,
|
||||||
accessKey = process.env.SAUCE_ACCESS_KEY;
|
accessKey = process.env.SAUCE_ACCESS_KEY,
|
||||||
|
tunnelId = 'lodash_' + process.env.TRAVIS_JOB_NUMBER;
|
||||||
|
|
||||||
var runnerPathname = (function() {
|
var runnerPathname = (function() {
|
||||||
var args = process.argv;
|
var args = process.argv;
|
||||||
@@ -64,7 +68,7 @@
|
|||||||
|
|
||||||
// set up sauce connect so we can use this server from saucelabs
|
// set up sauce connect so we can use this server from saucelabs
|
||||||
var tunnelTimeout = 10000,
|
var tunnelTimeout = 10000,
|
||||||
tunnel = new SauceTunnel(username, accessKey, null, true, tunnelTimeout);
|
tunnel = new SauceTunnel(username, accessKey, tunnelId, true, tunnelTimeout);
|
||||||
|
|
||||||
console.log('Opening sauce connect tunnel...');
|
console.log('Opening sauce connect tunnel...');
|
||||||
|
|
||||||
@@ -79,10 +83,28 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
function logInline(text) {
|
||||||
|
var blankLine = repeat(' ', prevLine.length);
|
||||||
|
if (text.length > 40) {
|
||||||
|
text = text.slice(0, 37) + '...';
|
||||||
|
}
|
||||||
|
prevLine = text;
|
||||||
|
process.stdout.write(text + blankLine.slice(text.length) + '\r');
|
||||||
|
}
|
||||||
|
|
||||||
|
function repeat(text, times) {
|
||||||
|
return Array(times + 1).join(text);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
function runTests() {
|
function runTests() {
|
||||||
var testDefinition = {
|
var testDefinition = {
|
||||||
'framework': 'qunit',
|
'framework': 'qunit',
|
||||||
'platforms': platforms,
|
'platforms': platforms,
|
||||||
|
'tunnel': 'tunnel-identifier:' + tunnelId,
|
||||||
'url': 'http://localhost:' + port + runnerPathname
|
'url': 'http://localhost:' + port + runnerPathname
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -95,7 +117,7 @@
|
|||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
waitForTestCompletion(body);
|
waitForTestCompletion(body);
|
||||||
} else {
|
} else {
|
||||||
console.error('Failed to submit test to Sauce Labs, status ' + response.statusCode + ', body:\n' + JSON.stringify(body));
|
console.error('Failed to submit test to Sauce Labs; status ' + response.statusCode + ', body:\n' + JSON.stringify(body));
|
||||||
process.exit(3);
|
process.exit(3);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -108,12 +130,18 @@
|
|||||||
}, function(error, response, body) {
|
}, function(error, response, body) {
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
if (body.completed) {
|
if (body.completed) {
|
||||||
|
logInline('');
|
||||||
handleTestResults(body['js tests']);
|
handleTestResults(body['js tests']);
|
||||||
} else {
|
}
|
||||||
waitForTestCompletion(testIdentifier);
|
else {
|
||||||
|
logInline('Please wait' + repeat('.', (++attempts % 3) + 1));
|
||||||
|
setTimeout(function() {
|
||||||
|
waitForTestCompletion(testIdentifier);
|
||||||
|
}, 15000);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.error('Failed to check test status on Sauce Labs, status ' + response.statusCode + ', body:\n' + JSON.stringify(body));
|
logInline('');
|
||||||
|
console.error('Failed to check test status on Sauce Labs; status ' + response.statusCode + ', body:\n' + JSON.stringify(body));
|
||||||
process.exit(4);
|
process.exit(4);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user