• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cloudmarker / cloudmarker / 560
84%

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2019 06:06PM UTC
Jobs 3
Files 32
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
560

push

travis-ci-com

susam
Search for user configuration in popular locations

Since Cloudmarker is supposed to serve as a CLI tool that one can run
with `cloudmarker -n` as well as a service that one may run as
`cloudmarker`, it is convenient if Cloudmarker searches certain popular
paths where configuration files usually reside. This would prevent the
users or service unit definition from having to specify configuration
files as arguments to the `-c` or `--config` option.

With this change, it now looks for a configuration file at the following
locations in the order specified:

  - /etc/cloudmarker.yaml
  - ~/.cloudmarker.yaml
  - ~/cloudmarker.yaml
  - cloudmarker.yaml (i.e., in the current working directory)

The base configuration file (which was named `config.base.yaml`) earlier
has been removed from the file system. There is no counterpart for it
now on the file system. Instead the base configuration is now built into
the code in a new module named `baseconfig`. This has been done for the
following reasons:

  - Provide reasonable defaults as built-in. This is consistent with how
    other tools work, e.g., Vim, Bash, etc. ship with defaults and we
    write `~/.vimrc`, `~/.bashrc`, etc. only when we want to override
    these defaults.

  - The users were never supposed to edit `config.base.yaml` anyway. By
    removing it from the file system, the users do not have to worry
    about notions like base configuration and user configuration. They
    do not have to be careful about not editing the base configuration.
    The users can still refer to the base configuration if they wish to
    by entering `cloudmarker --print-base-config`.

Since multiple configuration paths are involved, the logging has been
improved to show what configuration paths are being looked for and which
configuration paths are being found.

308 of 338 branches covered (91.12%)

Branch coverage included in aggregate %.

1387 of 1550 relevant lines covered (89.48%)

2.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 560.1 16 Apr 2019 06:07PM UTC 0
90.09
Travis Job 560.1
2 560.2 16 Apr 2019 06:06PM UTC 0
90.09
Travis Job 560.2
3 560.3 16 Apr 2019 06:06PM UTC 0
90.09
Travis Job 560.3
Source Files on build 560
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #560
  • a038ec35 on github
  • Prev Build on master (#557)
  • Next Build on master (#575)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc