-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
46 lines (38 loc) · 936 Bytes
/
Rakefile
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
gems = %w[
twigg
twigg-app
twigg-cache
twigg-gerrit
twigg-pivotal
]
gems.each do |gem|
namespace gem do
desc "run `bundle` in #{gem} subdirectory"
task :bundle do
Dir.chdir(gem) { system 'bundle' }
end
desc "run #{gem} specs"
task :spec do
Dir.chdir(gem) { system 'bundle exec rake' }
end
desc "build #{gem} gem"
task :build do
Dir.chdir(gem) { system 'bundle exec rake build' }
end
desc "push #{gem} gem to RubyGems"
task :push do
Dir.chdir(gem) { system 'bundle exec rake push' }
end
desc "tag #{gem} gem"
task :tag do
Dir.chdir(gem) { system 'bundle exec rake tag' }
end
end
end
namespace :all do
desc 'run `bundle` in each gem subdirectory'
task :bundle => gems.map { |gem| "#{gem}:bundle" }
desc 'run specs in each gem subdirectory'
task :spec => gems.map { |gem| "#{gem}:spec" }
end
task default: 'twigg:spec'