Example #1
0
 tag: function(fn){
     if(options.tag){
         utils.git.tag(language.version.new, function(err){
             if(err)
                 return fn(err);
             else{
                 logger.info(["Created git tag", language.version.new].join(" "));
                 return fn();
             }
         });
     }
     else{
         return fn();
     }
 },
Example #2
0
  it( 'should tag the corresponding commit with the passed version', () => {
    util.git.tag( '1.0.0' );

    expect( execStub ).toBeCalledWith( 'git tag -a 1.0.0 -m "1.0.0"' );
  } );