0.1.2 • Published 9 years ago

grunt-teamcity-blocks v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

grunt-teamcity-blocks Build Status

Runs Grunt tasks and reports each result inside a TeamCity block
See TeamCity Script Interaction for more info.

TeamCity task

Run this task with the grunt teamcity command.

Task targets, files and options may be specified according to the grunt Configuring tasks guide.

Usage

npm install grunt-teamcity-blocks --save-dev
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	teamcity: {
	  options: {
	    blockNamePrefix:'Grunt: '
	  },
		tasks: ['coffee', 'sass', 'jshint', 'mocha']
	}
});

Generates the following output:

##teamcity[blockOpened name="Grunt: coffee"]
{coffe-task result}
##teamcity[blockClosed name="Grunt: coffee"]
...

Options

blockNamePrefix

Type: String Default:

A prefix added to the name of the opening and closing teamcity block

runAsync

Type: Boolean Default: true

Set to false to have task-order respected