aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Betts <[email protected]>2016-08-17 13:25:31 -0700
committerPaul Betts <[email protected]>2016-08-17 13:25:31 -0700
commit2f636d2c193e5e35ef2b93f3fc1c46e2c3c97b71 (patch)
treec715bc43d1f3ed1f26dc851158ff021a7d222557 /lib
parent377b8a7345858e4af88e5a7dcc51552a8b712aef (diff)
downloadnode-coveralls-2f636d2c193e5e35ef2b93f3fc1c46e2c3c97b71.tar.xz
node-coveralls-2f636d2c193e5e35ef2b93f3fc1c46e2c3c97b71.zip
Wire up the code
Diffstat (limited to 'lib')
-rw-r--r--lib/getOptions.js5
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;