Skip to content

Commit ec30272

Browse files
committed
Update Gruntfile.js with a more comprehensive (and up-to-date) browser testing list for Sauce Labs
1 parent a3e43ac commit ec30272

File tree

1 file changed

+54
-20
lines changed

1 file changed

+54
-20
lines changed

Gruntfile.js

+54-20
Original file line numberDiff line numberDiff line change
@@ -278,54 +278,87 @@ module.exports = function (grunt) {
278278
'saucelabs-jasmine': {
279279
all: {
280280
options: {
281-
urls: ["filemanager-plugin","visitor-plugin","pre-processor-plugin","post-processor-plugin","post-processor", "global-vars", "modify-vars", "production", "rootpath-relative",
281+
urls: ["filemanager-plugin","visitor-plugin","pre-processor-plugin","post-processor-plugin","global-vars", "modify-vars", "production", "rootpath-relative",
282282
"rootpath", "relative-urls", "browser", "no-js-errors", "legacy", "strict-units"
283283
].map(function(testName) {
284284
return "http://localhost:8081/tmp/browser/test-runner-" + testName + ".html";
285285
}),
286286
testname: 'Sauce Unit Test for less.js',
287-
browsers: [{
287+
browsers: [
288+
// Desktop browsers
289+
{
288290
browserName: "chrome",
289-
version: '',
290-
platform: 'Windows 8'
291+
version: 'latest',
292+
platform: 'Windows 7'
291293
},
292294
{
293295
browserName: "firefox",
294-
version: '33',
296+
version: 'latest',
295297
platform: 'Linux'
296298
},
297299
{
298-
browserName: "iPad",
299-
version: '8.0',
300-
platform: 'OS X 10.9',
301-
'device-orientation': 'portrait'
300+
browserName: 'safari',
301+
version: '9.1',
302+
platform: 'OS X 10.10'
302303
},
303304
{
304-
browserName: "internet explorer",
305+
browserName: 'safari',
305306
version: '8',
306-
platform: 'Windows XP'
307+
platform: 'OS X 10.10'
307308
},
308309
{
309310
browserName: "internet explorer",
310-
version: '9',
311-
platform: 'Windows 7'
311+
version: '8',
312+
platform: 'Windows XP'
312313
},
313314
{
314315
browserName: "internet explorer",
315-
version: '10',
316+
version: '9',
316317
platform: 'Windows 7'
317318
},
318319
{
319320
browserName: "internet explorer",
320321
version: '11',
321322
platform: 'Windows 8.1'
322-
}],
323+
},
324+
{
325+
browserName: "edge",
326+
version: '13',
327+
platform: 'Windows 10'
328+
},
329+
// Mobile browsers
330+
{
331+
browserName: "ipad",
332+
version: '8.0',
333+
platform: 'OS X 10.9',
334+
'device-orientation': 'portrait'
335+
},
336+
{
337+
browserName: 'iphone',
338+
version: '7.1',
339+
platform: 'OS X 10.9'
340+
},
341+
{
342+
browserName: 'iphone',
343+
version: '9.3',
344+
platform: 'OS X 10.10'
345+
},
346+
{
347+
browerName: 'android',
348+
version: '4.2',
349+
platform: 'Linux'
350+
}
351+
],
352+
public: 'public',
353+
concurrency: 3,
354+
recordVideo: false,
355+
videoUploadOnPass: false,
356+
recordScreenshots: process.env.TRAVIS_BRANCH !== "master",
357+
build: process.env.TRAVIS_BRANCH === "master" ? process.env.TRAVIS_JOB_ID : undefined,
358+
tags: [process.env.TRAVIS_BUILD_NUMBER, process.env.TRAVIS_PULL_REQUEST, process.env.TRAVIS_BRANCH],
359+
'max-duration': 120,
323360
sauceConfig: {
324-
'record-video': process.env.TRAVIS_BRANCH !== "master",
325-
'record-screenshots': process.env.TRAVIS_BRANCH !== "master",
326-
'idle-timeout': 100, 'max-duration': 120,
327-
build: process.env.TRAVIS_BRANCH === "master" ? process.env.TRAVIS_JOB_ID : undefined,
328-
tags: [process.env.TRAVIS_BUILD_NUMBER, process.env.TRAVIS_PULL_REQUEST, process.env.TRAVIS_BRANCH]
361+
'idle-timeout': 100
329362
},
330363
throttled: 3
331364
}
@@ -341,6 +374,7 @@ module.exports = function (grunt) {
341374
});
342375

343376
// Load these plugins to provide the necessary tasks
377+
grunt.loadNpmTasks('grunt-saucelabs');
344378
require('jit-grunt')(grunt);
345379

346380
// Actually load this plugin's task(s).

0 commit comments

Comments
 (0)