diff options
| author | Nick Merwin <[email protected]> | 2016-09-15 09:59:13 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-09-15 09:59:13 -0700 |
| commit | 4084b24c096df22a02659b194abbcf74950268c1 (patch) | |
| tree | 1ac7680da93dd8c797c4c4908e726f941802424d /lib | |
| parent | 272e662dfa71a90242e64c39c7189d68107cf1a5 (diff) | |
| parent | d78dda89ff80acb94d2a90cd7a8b60cf4d14914f (diff) | |
| download | node-coveralls-4084b24c096df22a02659b194abbcf74950268c1.tar.xz node-coveralls-4084b24c096df22a02659b194abbcf74950268c1.zip | |
Merge pull request #139 from paulcbetts/surf
Add Surf support
Diffstat (limited to 'lib')
| -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 2536067..bb4248d 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -84,6 +84,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; |
