Skip to content

Commit

Permalink
revive the SauceLabs code
Browse files Browse the repository at this point in the history
  • Loading branch information
cvazac authored and nicjansma committed Apr 4, 2018
1 parent 2c375ec commit b813ebf
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ var DEFAULT_UGLIFY_BOOMERANGJS_OPTIONS = {
}
};

var SAUCELABS_CONFIG = {
username: process.env.CI_SAUCELABS_USERNAME,
key: function(){
return process.env.CI_SAUCELABS_KEY;
},
build: process.env.CI_BUILD_NUMBER,
tunneled: false
};

//
// Grunt config
//
Expand Down Expand Up @@ -89,7 +98,7 @@ module.exports = function() {
//
var e2eTests = [];
if (grunt.file.exists("tests/e2e/e2e.json")) {
e2eTests = JSON.parse(stripJsonComments(grunt.file.read("tests/e2e/e2e.json")));
e2eTests = JSON.parse(stripJsonComments(grunt.file.read("tests/e2e/e2e.json"))).tests;
}
var e2eUrls = [];

Expand Down Expand Up @@ -639,49 +648,41 @@ module.exports = function() {
}
},
"saucelabs-mocha": {
all: {
options: {
// username: "", // SAUCE_USERNAME
// key: "", // SAUCE_ACCESS_KEY
build: process.env.CI_BUILD_NUMBER,
tunneled: false
}
},
unit: {
options: {
options: Object.assign({
urls: [TEST_URL_BASE + "unit/"],
testname: "Boomerang Unit Tests",
browsers: JSON.parse(stripJsonComments(grunt.file.read("tests/browsers-unit.json")))
}
browsers: JSON.parse(stripJsonComments(grunt.file.read("./tests/browsers-unit.json")))
}, SAUCELABS_CONFIG)
},
"unit-debug": {
options: {
options: Object.assign({
urls: [TEST_URL_BASE + "unit/"],
testname: "Boomerang Unit Tests",
browsers: [{
"browserName": "internet explorer",
"version": "11",
"platform": "Windows 8.1"
}]
}
}, SAUCELABS_CONFIG)
},
e2e: {
options: {
options: Object.assign({
urls: e2eUrls,
testname: "Boomerang E2E Tests",
browsers: JSON.parse(stripJsonComments(grunt.file.read("tests/browsers-unit.json")))
}
}, SAUCELABS_CONFIG)
},
"e2e-debug": {
options: {
options: Object.assign({
urls: e2eUrls,
testname: "Boomerang E2E Tests",
browsers: [{
"browserName": "internet explorer",
"version": "11",
"platform": "Windows 8.1"
}]
}
}, SAUCELABS_CONFIG)
}
},
jsdoc: {
Expand Down

0 comments on commit b813ebf

Please sign in to comment.