-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c81c084
commit d117e3d
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,11 +49,9 @@ describe("getBaseOptions", function(){ | |
it ("should set service_name and service_job_id if it's running on codeship", function(done){ | ||
testCodeship(getBaseOptions, done); | ||
}); | ||
/* | ||
it ("should set service_name and service_job_id if it's running on drone", function(done){ | ||
testDrone(getBaseOptions, done); | ||
}); | ||
*/ | ||
it ("should set service_name and service_job_id if it's running on wercker", function(done){ | ||
testWercker(getBaseOptions, done); | ||
}); | ||
|
@@ -133,11 +131,9 @@ describe("getOptions", function(){ | |
it ("should set service_name and service_job_id if it's running on codeship", function(done){ | ||
testCodeship(getOptions, done); | ||
}); | ||
/* | ||
it ("should set service_name and service_job_id if it's running on drone", function(done){ | ||
testDrone(getBaseOptions, done); | ||
}); | ||
*/ | ||
it ("should set service_name and service_job_id if it's running on wercker", function(done){ | ||
testWercker(getOptions, done); | ||
}); | ||
|
@@ -365,16 +361,21 @@ var testDrone = function(sut, done) { | |
process.env.DRONE_BUILD_NUMBER = '1234'; | ||
process.env.DRONE_COMMIT = "e3e3e3e3e3e3e3e3e"; | ||
process.env.DRONE_BRANCH = "master"; | ||
process.env.DRONE_PULL_REQUEST = '3'; | ||
process.env.DRONE_COMMIT_AUTHOR = 'john doe'; | ||
process.env.DRONE_COMMIT_AUTHOR_EMAIL = '[email protected]'; | ||
process.env.DRONE_COMMIT_MESSAGE = 'msgmsgmsg'; | ||
|
||
sut(function(err, options){ | ||
options.service_name.should.equal("drone"); | ||
options.service_job_id.should.equal("1234"); | ||
options.git.should.eql({ head: | ||
{ id: 'e3e3e3e3e3e3e3e3e', | ||
author_name: 'Unknown Author', | ||
author_email: '', | ||
committer_name: 'Unknown Committer', | ||
committer_email: '', | ||
message: 'Unknown Commit Message' }, | ||
committer_name: 'john doe', | ||
committer_email: '[email protected]', | ||
message: 'msgmsgmsg' }, | ||
branch: 'master', | ||
remotes: [] }); | ||
done(); | ||
|