Permalink
Browse files

circle config

  • Loading branch information...
1 parent 1e32ff7 commit f8005671cbb8177448dae125a689f07292334b5e @bradrobertson bradrobertson committed Sep 18, 2012
Showing with 12 additions and 3 deletions.
  1. +3 −3 Rakefile
  2. +9 −0 circle.yml
View
@@ -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
@@ -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
View
@@ -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.