-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (28 loc) · 732 Bytes
/
Rakefile
File metadata and controls
34 lines (28 loc) · 732 Bytes
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
require "bundler/gem_tasks"
require "yard"
PROJECT_DIR = File.dirname(__FILE__)
SUBPROJECTS = %w(lucie-lib lucie-bin lucie-cmd)
desc 'Run all tests'
task :default => %w(test)
%w(release doc test install).each do |task|
desc "Run #{task} task for all projects"
task task do
errors = []
SUBPROJECTS.each do |project|
system(%(cd #{project} && #{$0} #{task})) || errors << project
end
fail("Errors in #{errors.join(', ')}") unless errors.empty?
end
end
namespace :update do
task :all do
SUBPROJECTS.each do |project|
system "bundle update"
end
system "bundle update"
end
end
task :doc => :yard
YARD::Rake::YardocTask.new do |t|
t.files = ['lucie-*/lib/**/*'] # optional
end