All files / tasks uploadCoverage.ts

100% Statements 7/7
100% Branches 0/0
100% Functions 3/3
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14  42x   42x 42x 1x   1x 1x 1x        
import ITask = grunt.task.ITask;
const sendToCodeCov = require('codecov.io/lib/sendToCodeCov.io');
 
export = function (grunt: IGrunt) {
	grunt.registerTask('uploadCoverage', <any> function (this: ITask) {
		const done = this.async();
 
		const contents = grunt.file.read('coverage-final.lcov');
		sendToCodeCov(contents, function (err: Error) {
			done(err);
		});
	});
};