aboutsummaryrefslogtreecommitdiff
blob: 3956dc24318aac59f7ee37b5d1b58873c408ac33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require_relative 'app'

task default: 'test'
task :test do
	Dir.glob('./test/test_*.rb') { |f| require f }
end

namespace :db do
	DB.loggers << Logger.new($stdout)

	task :migrate do
		Sequel.extension :migration
		Sequel::Migrator.run(DB, 'db/migrations')
	end

	task :update_packages do
		update_packages
	end

	task :update_ci do
		update_ci
	end

	task :clear_ci do
		clear_ci
	end
end

namespace :vm do
	task :run_ci_all do
		run_ci(:all)
	end

	task :run_ci_daily do
		run_ci(:daily)
	end

	num_of_packages = ENV['num_of_packages'].to_i
	task :run_ci_some do
		run_ci(num_of_packages)
	end

	task :run_ci_untested do
		run_ci(:untested)
	end
end