diff options
| author | Steven Weathers <[email protected]> | 2014-11-04 19:16:46 -0500 |
|---|---|---|
| committer | Steven Weathers <[email protected]> | 2014-11-04 19:16:46 -0500 |
| commit | 6472650604c7649f8a1156fa4dcd63a7f9289b38 (patch) | |
| tree | 1bc0fcfb43a58221f40694870771d389c0c39d89 /lib/getOptions.js | |
| parent | fde16dfe2b28fed153e7a9d37f878aadcc0e4f06 (diff) | |
| download | node-coveralls-6472650604c7649f8a1156fa4dcd63a7f9289b38.tar.xz node-coveralls-6472650604c7649f8a1156fa4dcd63a7f9289b38.zip | |
Add Wercker CI support with tests.
Fix minor lint error where a second semicolon appears in lib/fetchGitData.js
Diffstat (limited to 'lib/getOptions.js')
| -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 b5e041f..eab67f4 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -46,6 +46,13 @@ var getBaseOptions = function(cb){ git_branch = process.env.CI_BRANCH; } + if (process.env.WERCKER){ + options.service_name = 'wercker'; + options.service_job_id = process.env.WERCKER_BUILD_ID; + git_commit = process.env.WERCKER_GIT_COMMIT; + git_branch = process.env.WERCKER_GIT_BRANCH; + } + 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; |
