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

surminus / terragov / 49 / 1
72%
master: 72%

Build:
DEFAULT BRANCH: master
Ran 26 Nov 2017 03:37PM UTC
Files 11
Run time 0s
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

26 Nov 2017 03:25PM UTC coverage: 70.308% (+2.6%) from 67.665%
2.4.0

push

travis-ci

surminus
Allow app specific config to be loaded

This commit allows a user to specify app specific configuration that
takes precadence over "default" configuration in a config file, but can
still be overwritten by env vars or CLI flags.

The idea is to specify a default set of options:

```
default:
  environment: foo
  stack: bar
```

For a specific app, put the options under the name of the project you're
calling:

```
app-foo:
  stack: foo
```

This was slightly problematic to implement due to the cyclic nature of
ensuring the project name is already set when trying to find the
configuration under the project you're running against. I intend to
revisit how the configuration is loaded entirely as the number of
conditionals and ways of catching errors is complicated and extremely
difficult to understand.

There may also be some edge cases for when you specify a project under
the project specific configuration: in theory we should never get to
this point because the config would have loaded the config from the
default config file, env var or flag before we ever get there.

I also continue to have problems with my tests and exceptions, and in a
previous commit I moved to having an exception block, I backed this out
as I was finding it difficult to test properly. I need to also revisit
how to do exception handling properly (or find someone who can teach me
Ruby).

251 of 357 relevant lines covered (70.31%)

2.63 hits per line

Source Files on job 49.1 (2.4.0)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 49
  • Travis Job 49.1
  • 01327004 on github
  • Prev Job for 2.4.0 on master (#48.1)
  • Next Job for 2.4.0 on master (#51.1)
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