Skip to content

Commit

Permalink
Build: Remove testSwarm job
Browse files Browse the repository at this point in the history
  • Loading branch information
leobalter committed Aug 11, 2015
1 parent 15d7154 commit d1564e1
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 65 deletions.
44 changes: 0 additions & 44 deletions Gruntfile.js
@@ -1,5 +1,4 @@
/*jshint node:true */
/*globals JSON:false*/
module.exports = function( grunt ) {

require( "load-grunt-tasks" )( grunt );
Expand Down Expand Up @@ -133,49 +132,6 @@ grunt.initConfig({
}
});

grunt.registerTask( "testswarm", function( commit, configFile, projectName, browserSets, timeout ) {
var config,
testswarm = require( "testswarm" ),
runs = {},
done = this.async();

projectName = projectName || "qunit";
config = grunt.file.readJSON( configFile )[ projectName ];
browserSets = browserSets || config.browserSets;
if ( browserSets[ 0 ] === "[" ) {
// We got an array, parse it
browserSets = JSON.parse( browserSets );
}
timeout = timeout || 1000 * 60 * 15;

[ "index", "autostart", "startError", "setTimeout" ]
.forEach(function( suite ) {
runs[ suite ] = config.testUrl + commit + "/test/" + suite + ".html";
});

testswarm
.createClient({
url: config.swarmUrl
})
.addReporter( testswarm.reporters.cli )
.auth({
id: config.authUsername,
token: config.authToken
})
.addjob({
name: "Commit <a href='https://github.com/jquery/qunit/commit/" + commit + "'>" +
commit.substr( 0, 10 ) + "</a>",
runs: runs,
browserSets: browserSets,
timeout: timeout
}, function( err, passed ) {
if ( err ) {
grunt.log.error( err );
}
done( passed );
});
});

// TODO: Extract this task later, if feasible
// Also spawn a separate process to keep tests atomic
grunt.registerTask( "test-on-node", function() {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -40,8 +40,7 @@
"grunt-qunit-istanbul": "0.5.0",
"grunt-search": "0.1.6",
"load-grunt-tasks": "0.3.0",
"requirejs": "2.1.16",
"testswarm": "1.1.0"
"requirejs": "2.1.16"
},
"scripts": {
"ci": "grunt && grunt coveralls && browserstack-runner",
Expand Down
1 change: 0 additions & 1 deletion test/amd.html
Expand Up @@ -25,6 +25,5 @@
QUnit.start();
} );
</script>
<script src="swarminject.js"></script>
</body>
</html>
1 change: 0 additions & 1 deletion test/autostart.html
Expand Up @@ -37,6 +37,5 @@
});
})();
</script>
<script src="swarminject.js"></script>
</body>
</html>
1 change: 0 additions & 1 deletion test/index.html
Expand Up @@ -16,7 +16,6 @@
<script src="main/stack.js"></script>
<script src="setTimeout.js"></script>
<script src="reporter-html/reporter-html.js"></script>
<script src="swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
Expand Down
1 change: 0 additions & 1 deletion test/setTimeout.html
Expand Up @@ -9,6 +9,5 @@
<div id="qunit"></div>
<script src="../dist/qunit.js"></script>
<script src="setTimeout.js"></script>
<script src="swarminject.js"></script>
</body>
</html>
1 change: 0 additions & 1 deletion test/startError.html
Expand Up @@ -31,6 +31,5 @@
<script src="../dist/qunit.js"></script>

<script src="startError.js"></script>
<script src="swarminject.js"></script>
</body>
</html>
14 changes: 0 additions & 14 deletions test/swarminject.js

This file was deleted.

0 comments on commit d1564e1

Please sign in to comment.