[Pkg-javascript-commits] [node-coveralls] 95/332: added codeship environment var support.

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit 3380c6cc461cca7cd16a411290a55a86130403b3
Author: Gregg Caines <gregg at caines.ca>
Date:   Sat Aug 24 20:24:56 2013 -0700

    added codeship environment var support.
---
 lib/getOptions.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/getOptions.js b/lib/getOptions.js
index 97c79d5..4a4d959 100644
--- a/lib/getOptions.js
+++ b/lib/getOptions.js
@@ -44,6 +44,12 @@ var getOptions = function(cb){
     git_branch = process.env.CIRCLE_BRANCH;
   }
 
+  if (process.env.CI_NAME && process.env.CI_NAME === 'codeship'){
+    options.service_name = 'codeship';
+    options.service_job_id = process.env.CI_BUILD_NUMBER;
+    git_commit = process.env.CI_COMMIT_ID;
+    git_branch = process.env.CI_BRANCH;
+  }
 
   options.run_at = process.env.COVERALLS_RUN_AT || JSON.stringify(new Date()).slice(1, -1);
   if (process.env.COVERALLS_SERVICE_NAME){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list