Navigation Menu

Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
simple grunt multiTask for running ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lfryc authored and lholmquist committed Oct 20, 2014
1 parent 096b8af commit 476a40e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Gruntfile.js
Expand Up @@ -246,6 +246,10 @@ module.exports = function(grunt) {
files: 'src/aerogear.core.js',
tasks: 'qunit'
}
},
ci: {
vertx: {},
activemq: {}
}
});

Expand Down Expand Up @@ -285,6 +289,20 @@ module.exports = function(grunt) {
grunt.registerTask('travis', ['jshint', 'qunit', 'concat:dist', 'shell:integrationSetup', 'shell:integrationVertxRunner', 'shell:integrationActiveMQRunner', 'shell:integrationSimplePushRunner']);
grunt.registerTask('docs',['shell:docs']);

grunt.registerMultiTask('ci', function () {
var done = this.async();
grunt.util.spawn({
grunt: true,
args: ['ci-' + this.target],
opts: {
cwd: 'aerogear-js-integration',
stdio: 'inherit'
}
}, function (err, result, code) {
done();
});
});

// A task to create custom builds of the library based on the 'concat' task
grunt.registerTask('custom', function( opts ) {
var options = opts.split( ',' ),
Expand Down

0 comments on commit 476a40e

Please sign in to comment.