Sha256: 6079ad8501b66d2402f94e31a946cf72c90a3c36d28c71acb2a57a910c485dab
Contents?: true
Size: 732 Bytes
Versions: 14
Compression:
Stored size: 732 Bytes
Contents
<% database_prefix = ENV['LIB_NAME'].presence || "solidus" %> <% case ENV['DB'] when 'mysql' %> test: adapter: mysql2 <% if ENV['CI'] %> username: root password: <% end %> database: <%= database_prefix %>_test encoding: utf8 <% unless ENV['DB_HOST'].blank? %> host: <%= ENV['DB_HOST'] %> <% end %> <% when 'postgres', 'postgresql' %> <% db_host = ENV['DB_HOST'] %> test: adapter: postgresql database: <%= database_prefix %>_test min_messages: warning <% unless db_host.blank? %> host: <%= db_host %> <% end %> <% when 'sqlite', '', nil %> test: adapter: sqlite3 database: db/<%= database_prefix %>_test.sqlite3 timeout: 10000 <% else %> <% raise "Invalid DB specified: #{ENV['DB']}" %> <% end %>
Version data entries
14 entries across 14 versions & 1 rubygems