diff options
| author | Gabe Hayes <[email protected]> | 2013-07-24 16:38:39 -0700 |
|---|---|---|
| committer | Gabe Hayes <[email protected]> | 2013-07-24 16:38:39 -0700 |
| commit | e1af2e0a9a6a5404d38955b3324db5889fec63f0 (patch) | |
| tree | 02ab33e42297f6e404ae9b6e0fcc573bd09eb133 /lib | |
| parent | ca07f96b3e9c19a30e11d87e6d13c88e5f29d7a7 (diff) | |
| download | node-coveralls-e1af2e0a9a6a5404d38955b3324db5889fec63f0.tar.xz node-coveralls-e1af2e0a9a6a5404d38955b3324db5889fec63f0.zip | |
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..534b175 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 = 'circle'; + 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": { |
