Skip to content

Commit

Permalink
Merge pull request #124 from tparnell8/appveyor
Browse files Browse the repository at this point in the history
add appveyor support
  • Loading branch information
nickmerwin committed Mar 25, 2016
2 parents 668d873 + 59356d4 commit 01e6fb9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/getOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 01e6fb9

Please sign in to comment.