[Pkg-javascript-commits] [node-coveralls] 252/332: add appveyor support

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:54:07 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 59356d469313419396c5190842a81cb23ba6c319
Author: Tommy Parnell <tparnell8 at gmail.com>
Date:   Sun Mar 13 01:23:26 2016 -0500

    add appveyor support
---
 lib/getOptions.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/getOptions.js b/lib/getOptions.js
index e0cb1f0..e579eee 100644
--- a/lib/getOptions.js
+++ b/lib/getOptions.js
@@ -73,7 +73,13 @@ var getBaseOptions = function(cb){
     git_commit = process.env.CI_BUILD_REF;
     git_branch = process.env.CI_BUILD_REF_NAME;
   }
-
+  if(process.env.APPVEYOR){
+    options.service_name = 'appveyor';
+    options.service_job_number = process.env.APPVEYOR_BUILD_NUMBER;
+    options.service_job_id = process.env.APPVEYOR_BUILD_ID;
+    git_commit = process.env.APPVEYOR_REPO_COMMIT;
+    git_branch = process.env.APPVEYOR_REPO_BRANCH;
+  }
   options.run_at = process.env.COVERALLS_RUN_AT || JSON.stringify(new Date()).slice(1, -1);
   if (process.env.COVERALLS_SERVICE_NAME){
     options.service_name = 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