diff options
| author | Gerard Escalante <[email protected]> | 2014-02-11 13:16:07 +0900 |
|---|---|---|
| committer | Gerard Escalante <[email protected]> | 2014-02-11 13:16:07 +0900 |
| commit | 2275311f3a1b9125993686161d76aa54e087705b (patch) | |
| tree | b5dd382eca6085a8ca8ba3beabf5d4c56f0b3df6 /lib | |
| parent | a62635d49b7eb864e64258c5d65b47ad03195fa2 (diff) | |
| download | node-coveralls-2275311f3a1b9125993686161d76aa54e087705b.tar.xz node-coveralls-2275311f3a1b9125993686161d76aa54e087705b.zip | |
Read service_name from coveralls.yml
Also fixed a typo from the last commit.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/getOptions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js index 53b50b4..3641ffc 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -59,7 +59,11 @@ var getBaseOptions = function(cb){ var yml = path.join(process.cwd(), '.coveralls.yml'); try { if (fs.statSync(yml).isFile()) { - options.repo_token = yaml.safeLoad(fs.readFileSync(yml, 'utf8')).repo_token; + var coveralls_yaml_conf = yaml.safeLoad(fs.readFileSync(yml, 'utf8')); + options.repo_token = coveralls_yaml_conf.repo_token; + if(coveralls_yaml_conf.service_name) { + options.service_name = coveralls_yaml_conf.service_name; + } } } catch(ex){ logger.warn("Repo token could not be determined. Continuing without it."); |
