diff options
| author | Tommy Parnell <[email protected]> | 2016-03-13 01:23:26 -0500 |
|---|---|---|
| committer | Tommy Parnell <[email protected]> | 2016-03-13 01:23:26 -0500 |
| commit | 59356d469313419396c5190842a81cb23ba6c319 (patch) | |
| tree | d5cf0b4149111a96e48777e3c1f4f9717c5d179e /lib/getOptions.js | |
| parent | 668d87369d08f86f7fecef67b6aee5788b5461f0 (diff) | |
| download | node-coveralls-59356d469313419396c5190842a81cb23ba6c319.tar.xz node-coveralls-59356d469313419396c5190842a81cb23ba6c319.zip | |
add appveyor support
Diffstat (limited to 'lib/getOptions.js')
| -rw-r--r-- | lib/getOptions.js | 8 |
1 files changed, 7 insertions, 1 deletions
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; |
