-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:nickmerwin/node-coveralls
- Loading branch information
Showing
5 changed files
with
28 additions
and
21 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
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
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); | ||
}); | ||
|
@@ -285,9 +281,11 @@ var testServicePullRequest = function(sut, done){ | |
var testTravisCi = function(sut, done){ | ||
process.env.TRAVIS = "TRUE"; | ||
process.env.TRAVIS_JOB_ID = "1234"; | ||
process.env.TRAVIS_PULL_REQUEST = "123"; | ||
sut(function(err, options){ | ||
options.service_name.should.equal("travis-ci"); | ||
options.service_job_id.should.equal("1234"); | ||
options.service_pull_request.should.equal("123"); | ||
done(); | ||
}); | ||
}; | ||
|
@@ -365,16 +363,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(); | ||
|