diff options
Diffstat (limited to 'lib/getOptions.js')
| -rw-r--r-- | lib/getOptions.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js index 7fcbf08..2f9c9fb 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -180,6 +180,7 @@ const getBaseOptions = cb => { if (coveralls_yaml_conf.repo_token) { options.repo_token = coveralls_yaml_conf.repo_token; } + if (coveralls_yaml_conf.service_name) { options.service_name = coveralls_yaml_conf.service_name; } @@ -190,7 +191,7 @@ const getBaseOptions = cb => { options.repo_token = process.env.COVERALLS_REPO_TOKEN; } - if ('travis-pro' === options.service_name && !options.repo_token) { + if (options.service_name === 'travis-pro' && !options.repo_token) { logger.warn('Repo token could not be determined. Continuing without it. ' + 'This is necessary for private repos only, so may not be an issue at all.'); } |
