diff options
| author | Dylan Smith <[email protected]> | 2019-06-05 18:52:14 -0500 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2019-06-05 16:52:14 -0700 |
| commit | f0ddec529c8271ea193bfab41de12b6c06d533f5 (patch) | |
| tree | 0a66ae2e2ddb0a89fc173369c8040ffefd69b80a /lib/getOptions.js | |
| parent | 8ac43255d55eb28b25204480492d0c405eaa129c (diff) | |
| download | node-coveralls-f0ddec529c8271ea193bfab41de12b6c06d533f5.tar.xz node-coveralls-f0ddec529c8271ea193bfab41de12b6c06d533f5.zip | |
Add support for Azure Pipelines (#221)
Diffstat (limited to 'lib/getOptions.js')
| -rw-r--r-- | lib/getOptions.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js index 0c2c7dc..424b1ac 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -112,6 +112,14 @@ var getBaseOptions = function(cb){ git_branch = process.env.BRANCH_NAME; } + if(process.env.TF_BUILD){ + options.service_name = 'Azure Pipelines'; + options.service_job_id = process.env.BUILD_BUILDID; + options.service_pull_request = process.env.SYSTEM_PULLREQUEST_PULLREQUESTNUMBER; + git_commit = process.env.BUILD_SOURCEVERSION; + git_branch = process.env.BUILD_SOURCEBRANCHNAME; + } + 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; |
