Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1871 from cormacmccarthy/GH1870---saucelabs-confi…
Browse files Browse the repository at this point in the history
…g-needs-to-provide-key-as-a-function_or_fuelux

Makes saucelabs key a function to conform with grunt-saucelabs v3.0.0
  • Loading branch information
Christopher McCulloh authored Sep 22, 2016
2 parents b1ef3d1 + f3f771a commit 2531123
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions grunt/config/saucelabs-qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ module.exports = function (grunt) {
return grunt.file.readJSON('./package.json');
}

// https://github.com/axemclion/grunt-saucelabs/issues/215
var getSaucekey = function getSaucekey () {
return grunt.file.readYAML('SAUCE_API_KEY.yml').key;
};

return {
defaultBrowsers: {
options: {
username: '<%= sauceUser %>',
key: '<%= sauceKey %>',
key: getSaucekey,
tunnelTimeout: 45,
testInterval: 3000,
tags: [getPackage().version, '<%= sauceUser %>' + '@' + process.env.TRAVIS_BRANCH || '<%= sauceUser %>@local'],
Expand All @@ -23,13 +28,12 @@ module.exports = function (grunt) {
all: {
options: {
username: '<%= sauceUser %>',
key: '<%= sauceKey %>',
key: getSaucekey,
browsers: grunt.file.readYAML('sauce_browsers.yml'),
build: process.env.TRAVIS_BUILD_NUMBER || '<%= pkg.version %>',
testname: 'grunt-<%= grunt.template.today("dddd, mmmm dS, yyyy, h:MM:ss TT") %>',
urls: '<%= allTestUrls %>'
}
}
}

};
};
};

0 comments on commit 2531123

Please sign in to comment.