blob: 12363e227f9e3572bab3b8cbddda71a3f34ab8f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
namespace :ci do
task :fetch_database_config do
db_config = File.join(%w{config database.sqlite3-sample.yml})
FileUtils.cp db_config, File.join(%w{config database.yml})
end
desc "run all task necessary to build with integrity"
task :run_ci do
system "git submodule init"
system "git submodule update"
:fetch_database_config
system "rake db:migrate"
system "rake db:test:clone"
system "rake test:coverage"
end
end
|