diff options
| author | Paul Betts <[email protected]> | 2016-08-17 13:25:31 -0700 |
|---|---|---|
| committer | Paul Betts <[email protected]> | 2016-08-17 13:25:31 -0700 |
| commit | 2f636d2c193e5e35ef2b93f3fc1c46e2c3c97b71 (patch) | |
| tree | c715bc43d1f3ed1f26dc851158ff021a7d222557 | |
| parent | 377b8a7345858e4af88e5a7dcc51552a8b712aef (diff) | |
| download | node-coveralls-2f636d2c193e5e35ef2b93f3fc1c46e2c3c97b71.tar.xz node-coveralls-2f636d2c193e5e35ef2b93f3fc1c46e2c3c97b71.zip | |
Wire up the code
| -rw-r--r-- | lib/getOptions.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js index e579eee..70420b2 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -80,6 +80,11 @@ var getBaseOptions = function(cb){ git_commit = process.env.APPVEYOR_REPO_COMMIT; git_branch = process.env.APPVEYOR_REPO_BRANCH; } + if(process.env.SURF_SHA1){ + options.service_name = 'surf'; + git_commit = process.env.SURF_SHA1; + git_branch = process.env.SURF_REF; + } 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; |
