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

dropwizard / dropwizard-flyway / 266
57%

Build:
DEFAULT BRANCH: master
Ran 24 Dec 2019 01:13PM 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
266

push

travis-ci

web-flow
Improve support for running migrations on startup (#71)

Overload `FlywayFactory.build()` to make it easier to share config between the CLI and when running migrations on startup.

With this change, you can do something like the following in your `Application`'s run method:

```java
    @Override
    public void run(DropwizardSaasConfiguration config, Environment environment) {
        ...
        DataSourceFactory dataSourceFactory = config.getDataSourceFactory();
        LOGGER.info("Running Flyway migrations");
        Flyway flyway = config.getFlywayFactory().build( //share config w/ the CLI
                dataSourceFactory.getUrl(),
                dataSourceFactory.getUser(),
                dataSourceFactory.getPassword());
        int migrations = flyway.migrate();
        LOGGER.info("{} migrations applied", migrations);
        ...
    }
```

Prior to this change, passing a `DataSource` meant creating your own (a duplication of code already in Flyway's codebase) or constructing a connection pool via `DataSourceFactory` (overkill for Flyway) or trying to look up a `DataSource` managed by Flyway (tight coupling).

Closes #55
Co-authored-by: Chris Hansen <hansen.chris.w@gmail.com>

76 of 312 relevant lines covered (24.36%)

0.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 266.1 24 Dec 2019 01:13PM UTC 0
24.36
Travis Job 266.1
Source Files on build 266
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #266
  • d89be6ed on github
  • Prev Build on master (#262)
  • Next Build on master (#267)
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