diff options
| author | Gregg Caines <[email protected]> | 2013-07-25 13:47:46 -0700 |
|---|---|---|
| committer | Gregg Caines <[email protected]> | 2013-07-25 13:47:46 -0700 |
| commit | 3d818f90f3aab5b92e2f570261321510fafaf3b2 (patch) | |
| tree | 3d752d01e5fdaa925c57e2d01c4b86753da14d5b /lib | |
| parent | 89212de6fe2cec08961617ae00d9f648faeccc14 (diff) | |
| parent | a3436f94ab8adf8075898ca63f11ff328cd054d4 (diff) | |
| download | node-coveralls-3d818f90f3aab5b92e2f570261321510fafaf3b2.tar.xz node-coveralls-3d818f90f3aab5b92e2f570261321510fafaf3b2.zip | |
Merge pull request #15 from gabehayes/master
add support for CircleCI
Diffstat (limited to 'lib')
| -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 d082d70..973b82b 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -33,6 +33,13 @@ var getOptions = function(){ git_branch = process.env.GIT_BRANCH; } + if (process.env.CIRCLECI){ + options.service_name = 'circleci'; + options.service_job_id = process.env.CIRCLE_BUILD_NUM; + git_commit = process.env.CIRCLE_SHA1; + git_branch = process.env.CIRCLE_BRANCH; + } + if (git_commit){ options.git = { "head": { |
