Navigation Menu

Skip to content

Commit

Permalink
circle config
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrobertson committed Sep 18, 2012
1 parent 1e32ff7 commit f800567
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Expand Up @@ -26,13 +26,13 @@ namespace :db do
namespace :test do
task :prepare => %w{postgres:drop_db postgres:build_db mysql:drop_db mysql:build_db}
end

desc "copy sample database credential files over if real files don't exist"
task :copy_credentials do
require 'fileutils'
apartment_db_file = 'spec/config/database.yml'
rails_db_file = 'spec/dummy/config/database.yml'

FileUtils.copy(apartment_db_file + '.sample', apartment_db_file, :verbose => true) unless File.exists?(apartment_db_file)
FileUtils.copy(rails_db_file + '.sample', rails_db_file, :verbose => true) unless File.exists?(rails_db_file)
end
Expand Down Expand Up @@ -73,7 +73,7 @@ namespace :mysql do
puts "dropping database #{my_config['database']}"
%x{ mysqladmin -u root drop #{my_config['database']} --force}
end

end

# TODO clean this up
Expand Down
9 changes: 9 additions & 0 deletions circle.yml
@@ -0,0 +1,9 @@
machine:
ruby:
version: 1.9.3-p194

test:
override:
- bundle exec rake spec:
environment:
RAILS_ENV: test

0 comments on commit f800567

Please sign in to comment.