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

surminus / terragov / 49
72%

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

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

Jobs
ID Job ID Ran Files Coverage
1 49.1 (2.4.0) 26 Nov 2017 03:37PM UTC 0
70.31
Travis Job 49.1
Source Files on build 49
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #49
  • 01327004 on github
  • Prev Build on master (#48)
  • Next Build on master (#51)
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

© 2025 Coveralls, Inc