Skip to content
Permalink
Browse files

Grunt: Read authToken from a config json file. Will be stored on Jenk…

…ins machine, include tokens for all projects
  • Loading branch information...
jzaefferer committed Apr 30, 2012
1 parent f9e61eb commit b579df0f0926bd208b943a14f2ad1441fc44b59f
Showing with 3 additions and 2 deletions.
  1. +3 −2 grunt.js
@@ -335,11 +335,12 @@ grunt.initConfig({
})()
});

grunt.registerTask( "testswarm", function( commit, authToken ) {
grunt.registerTask( "testswarm", function( commit, configFile ) {
var test,
testswarm = require( "testswarm" ),
testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/tests/unit/",
testUrls = [],
config = grunt.file.readJSON( configFile );
tests = {
"Accordion": "accordion/accordion.html",
"Accordion_deprecated": "accordion/accordion_deprecated.html",
@@ -374,7 +375,7 @@ grunt.registerTask( "testswarm", function( commit, authToken ) {
done: this.async()
}, {
authUsername: "jqueryui",
authToken: authToken,
authToken: config.jqueryui.authToken,
jobName: 'jQuery UI commit #<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit + '</a>',
runMax: 4,
"runNames[]": Object.keys(tests),

0 comments on commit b579df0

Please sign in to comment.
You can’t perform that action at this time.