]> source.dussan.org Git - jquery-ui.git/commitdiff
Grunt: Read authToken from a config json file. Will be stored on Jenkins machine...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 30 Apr 2012 13:14:33 +0000 (15:14 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 30 Apr 2012 13:14:33 +0000 (15:14 +0200)
grunt.js

index 7e13bec4a4e55b3869f02ab3afcc35228d87329f..b3bde622f8a88196854912de265df0de79f4425f 100644 (file)
--- 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),