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

sqitchers / sqitch / 138
91%
develop: 100%

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

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.

12 of 12 new or added lines in 5 files covered. (100.0%)

4240 of 4537 relevant lines covered (93.45%)

61.1 hits per line

Jobs
ID Job ID Ran Files Coverage
12 138.12 (COVERAGE=1) 01 Oct 2018 04:58PM UTC 0
93.45
Travis Job 138.12
Source Files on build 138
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #138
  • 27808077 on github
  • Prev Build on master (#136)
  • Next Build on master (#139)
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