I’m trying to use Travis Continuous Integration on a Rails project. The documentation says that the test db must be configured as following for SQLite3:
test:
adapter: sqlite3
database: ":memory:"
timeout: 500
But I’d like to keep my default configuration for local tests. Is it possible to keep both my local settings and the Travis requirements?
My solution for this problem is fully based on a blog post with a few differences:
config/database.travis.yml;cp config/database.travis.yml config/database.ymlin before script section of.travis.yml;config/database.ymlin source tree.Here is full listing for both files: