aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-04-30 15:14:33 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-04-30 15:14:33 +0200
commitb579df0f0926bd208b943a14f2ad1441fc44b59f (patch)
tree319a259b7da7a17bbdf98750478820f2f13f8f1a /grunt.js
parentf9e61eb61799faad3b215ed766f51bf79ef9b69f (diff)
downloadjquery-ui-b579df0f0926bd208b943a14f2ad1441fc44b59f.tar.gz
jquery-ui-b579df0f0926bd208b943a14f2ad1441fc44b59f.zip
Grunt: Read authToken from a config json file. Will be stored on Jenkins machine, include tokens for all projects
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/grunt.js b/grunt.js
index 7e13bec4a..b3bde622f 100644
--- a/grunt.js
+++ b/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),