Sha256: 68d7013a567e31b6941d92779e0b7b8c73d2b8c7801dcad198e3f2fc5764005f
Contents?: true
Size: 857 Bytes
Versions: 3
Compression:
Stored size: 857 Bytes
Contents
configure-database: body: | #!/usr/bin/env ruby require 'yaml' config = \ { 'test' => { 'adapter' => 'postgresql', 'encoding' => 'unicode', 'host' => 'localhost', 'pool' => 3, 'username' => ENV['PGUSER'], 'password' => ENV['PGPASSWORD'], 'database' => "<%= Rails.application.class.name.split('::').first.underscore %>#{ENV['CIDER_CI_TRIAL_ID']}"}} File.open('config/database.yml','w') { |file| file.write config.to_yaml } prepare-database: body: RAILS_ENV=test bundle exec rake db:create db:migrate start-when: - script: bundle - script: configure-database delete-database: body: RAILS_ENV=test bundle exec rake db:pg:terminate_connections db:drop ignore-state: true start-when: - script: rspec states: [aborted, passed, failed, skipped]
Version data entries
3 entries across 3 versions & 1 rubygems