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

Commit

Permalink
(GH1870) makes saucelabs key a function to conform with grunt-saucela…
Browse files Browse the repository at this point in the history
…bs v3.0.0
  • Loading branch information
Christopher McCulloh committed Sep 22, 2016
1 parent b1ef3d1 commit f3f771a
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 f3f771a

Please sign in to comment.