Rakefile in spreewald-0.8.2 vs Rakefile in spreewald-0.8.3
- old
+ new
@@ -16,31 +16,16 @@
end
namespace :travis do
desc 'Run tests in Travis CI'
- task :run => [:slimgems, :create_database, :create_database_yml] do
- Rake::Task['all:bundle'].invoke
- Rake::Task['all:features'].invoke
- end
+ task :run => [:slimgems, 'all:bundle', 'all:features']
desc 'Install slimgems'
task :slimgems do
system('gem install slimgems')
end
-
- desc 'Creates a test database'
- task :create_database do
- system("mysql -e 'create database spreewald_test;'")
- end
-
- desc 'Creates a database.yml'
- task :create_database_yml do
- config_dir = "tests/shared/config"
- system("cp #{config_dir}/database.sample.yml #{config_dir}/database.yml")
- end
-
end
namespace :all do
desc "Run tests on all test apps"
@@ -61,15 +46,9 @@
Bundler.with_clean_env do
system("cd #{directory} && bundle install")
end
end
end
-
- desc 'Shortcut for creating a database'
- task :create_database do
- system("mysql -uroot -p -e 'create database spreewald_test;'")
- end
-
end
def for_each_directory_of(path, &block)
Dir[path].sort.each do |rakefile|
directory = File.dirname(rakefile)