aboutsummaryrefslogtreecommitdiff
path: root/lib/getOptions.js
diff options
context:
space:
mode:
authorMarc Riegel <[email protected]>2016-06-26 08:02:09 +0200
committerMarc Riegel <[email protected]>2016-06-26 08:02:09 +0200
commit2fb137eefba11b1ca5139e4f6269451229586cf3 (patch)
tree48525bff2d8477d13d73a298fcd22e14ddfd1513 /lib/getOptions.js
parent57db7194851af1c773ac35fa5312606823f8ee82 (diff)
downloadnode-coveralls-2fb137eefba11b1ca5139e4f6269451229586cf3.tar.xz
node-coveralls-2fb137eefba11b1ca5139e4f6269451229586cf3.zip
Feature: Support codeship docker environment variables
Diffstat (limited to 'lib/getOptions.js')
-rw-r--r--lib/getOptions.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js
index e579eee..2536067 100644
--- a/lib/getOptions.js
+++ b/lib/getOptions.js
@@ -9,6 +9,7 @@ var getBaseOptions = function(cb){
var options = {};
var git_commit = process.env.COVERALLS_GIT_COMMIT;
var git_branch = process.env.COVERALLS_GIT_BRANCH;
+ var git_committer_name, git_committer_email, git_message;
var match = (process.env.CI_PULL_REQUEST || "").match(/(\d+)$/);
@@ -57,6 +58,9 @@ var getBaseOptions = function(cb){
options.service_job_id = process.env.CI_BUILD_NUMBER;
git_commit = process.env.CI_COMMIT_ID;
git_branch = process.env.CI_BRANCH;
+ git_committer_name = process.env.CI_COMMITTER_NAME;
+ git_committer_email = process.env.CI_COMMITTER_EMAIL;
+ git_message = process.env.CI_COMMIT_MESSAGE;
}
if (process.env.WERCKER){
@@ -123,7 +127,10 @@ var getBaseOptions = function(cb){
if (git_commit){
fetchGitData({
head: {
- id: git_commit
+ id: git_commit,
+ committer_name: git_committer_name,
+ committer_email: git_committer_email,
+ message: git_message
},
branch: git_branch
}, function(err, git){