diff options
| author | Gregg Caines <[email protected]> | 2014-02-19 02:31:28 -0800 |
|---|---|---|
| committer | Gregg Caines <[email protected]> | 2014-02-19 02:31:28 -0800 |
| commit | 26581f2eeec2635c713ae6a438cce81bff458e4b (patch) | |
| tree | ef44167f879bdcbff27eed26fd7a39c115942026 /lib/getOptions.js | |
| parent | 43e903cde9f9fdf5a2972927f9a1b7426676adea (diff) | |
| parent | 038408b78cff7d9a974e652f426ff786ed730bbb (diff) | |
| download | node-coveralls-26581f2eeec2635c713ae6a438cce81bff458e4b.tar.xz node-coveralls-26581f2eeec2635c713ae6a438cce81bff458e4b.zip | |
Merge branch 'master' of github.com:cainus/node-coveralls
Diffstat (limited to 'lib/getOptions.js')
| -rw-r--r-- | lib/getOptions.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js index 3641ffc..68016aa 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -14,6 +14,13 @@ var getBaseOptions = function(cb){ options.service_job_id = process.env.TRAVIS_JOB_ID; } + if (process.env.DRONE){ + options.service_name = 'drone'; + options.service_job_id = process.env.DRONE_BUILD_NUMBER; + git_commit = process.env.DRONE_COMMIT; + git_branch = process.env.DRONE_BRANCH; + } + if (process.env.JENKINS_URL){ options.service_name = 'jenkins'; options.service_job_id = process.env.BUILD_ID; |
