@@ -49,11 +49,9 @@ describe("getBaseOptions", function(){
49
49
it ( "should set service_name and service_job_id if it's running on codeship" , function ( done ) {
50
50
testCodeship ( getBaseOptions , done ) ;
51
51
} ) ;
52
- /*
53
52
it ( "should set service_name and service_job_id if it's running on drone" , function ( done ) {
54
53
testDrone ( getBaseOptions , done ) ;
55
54
} ) ;
56
- */
57
55
it ( "should set service_name and service_job_id if it's running on wercker" , function ( done ) {
58
56
testWercker ( getBaseOptions , done ) ;
59
57
} ) ;
@@ -133,11 +131,9 @@ describe("getOptions", function(){
133
131
it ( "should set service_name and service_job_id if it's running on codeship" , function ( done ) {
134
132
testCodeship ( getOptions , done ) ;
135
133
} ) ;
136
- /*
137
134
it ( "should set service_name and service_job_id if it's running on drone" , function ( done ) {
138
135
testDrone ( getBaseOptions , done ) ;
139
136
} ) ;
140
- */
141
137
it ( "should set service_name and service_job_id if it's running on wercker" , function ( done ) {
142
138
testWercker ( getOptions , done ) ;
143
139
} ) ;
@@ -365,16 +361,21 @@ var testDrone = function(sut, done) {
365
361
process . env . DRONE_BUILD_NUMBER = '1234' ;
366
362
process . env . DRONE_COMMIT = "e3e3e3e3e3e3e3e3e" ;
367
363
process . env . DRONE_BRANCH = "master" ;
364
+ process . env . DRONE_PULL_REQUEST = '3' ;
365
+ process . env . DRONE_COMMIT_AUTHOR = 'john doe' ;
366
+ process . env . DRONE_COMMIT_AUTHOR_EMAIL = 'john@doe.com' ;
367
+ process . env . DRONE_COMMIT_MESSAGE = 'msgmsgmsg' ;
368
+
368
369
sut ( function ( err , options ) {
369
370
options . service_name . should . equal ( "drone" ) ;
370
371
options . service_job_id . should . equal ( "1234" ) ;
371
372
options . git . should . eql ( { head :
372
373
{ id : 'e3e3e3e3e3e3e3e3e' ,
373
374
author_name : 'Unknown Author' ,
374
375
author_email : '' ,
375
- committer_name : 'Unknown Committer ' ,
376
- committer_email : '' ,
377
- message : 'Unknown Commit Message ' } ,
376
+ committer_name : 'john doe ' ,
377
+ committer_email : 'john@doe.com ' ,
378
+ message : 'msgmsgmsg ' } ,
378
379
branch : 'master' ,
379
380
remotes : [ ] } ) ;
380
381
done ( ) ;
0 commit comments