Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Semaphore support (#180)
  • Loading branch information
manuphatak authored and nickmerwin committed May 1, 2018
1 parent 10d8b3e commit bd667c6
Show file tree
Hide file tree
Showing 3 changed files with 3,230 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/getOptions.js
Expand Up @@ -93,6 +93,12 @@ var getBaseOptions = function(cb){
git_commit = process.env.SURF_SHA1;
git_branch = process.env.SURF_REF;
}
if(process.env.SEMAPHORE){
options.service_name = 'semaphore';
options.service_job_id = process.env.SEMAPHORE_BUILD_NUMBER;
git_commit = process.env.REVISION;
git_branch = process.env.BRANCH_NAME;
}
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;
Expand Down

0 comments on commit bd667c6

Please sign in to comment.