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

sqitchers / sqitch / 138 / 12
91%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: prep-v1.6.0
DEFAULT BRANCH: develop
Ran 01 Oct 2018 04:58PM UTC
Files 48
Run time 3s
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

01 Oct 2018 04:03PM UTC coverage: 93.454% (+0.003%) from 93.451%
COVERAGE=1

push

travis-ci-com

theory
Make username and password proper engine attributes.

This lets us formalize the proper search order for these attributes. The order
is:

1.  The `$SQITCH_USERNAME` and `$SQITCH_PASSWORD` environment variables.
2.  The username and password from the target URI.
3.  Engine-specific defaults.

The third option is covered by the new `_def_user()` and `_def_pass()`
methods. Subclasses may implement them to return whatever values they deem
appropriate. Each engine requiring authentication has added these methods,
sometimes returning no value at all, other times searching engine-specific
environment variables, configruation files, or the system.

This change was driven by the need to be explicit about username, in
particular, when a database engine falls back on the system user. Rather than
let the underlying engines implicitly read these values, we implicitly collect
them. And because we have the `$SQITCH_ORIG_SYSUSER` environment variable,
that means we properly use it for all connections. In other words, when using
the Sqitch Docker image to deploy to postgres, all conections will use the
originating host username rather than the image username.

This change reverses 22d9d51, returning to the pattern of letting each engine
control its default values, rather than falling back on the system user for
all of them (and ignoring engine-specific environment variables).

While at it, fix the vertica environment variable tests, which had been using
the wrong environment variable names.

4240 of 4537 relevant lines covered (93.45%)

61.1 hits per line

Source Files on job 138.12 (COVERAGE=1)
  • Tree
  • List 0
  • Changed 9
  • Source Changed 9
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 72
  • Travis Job 138.12
  • 27808077 on github
  • Prev Job for COVERAGE=1 on master (#136.12)
  • Next Job for COVERAGE=1 on master (#139.12)
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