-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
37 lines (32 loc) · 944 Bytes
/
Rakefile
File metadata and controls
37 lines (32 loc) · 944 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
35
36
37
# -*- ruby -*-
$:.unshift(File.expand_path('../rocket/lib', __FILE__))
$:.unshift(File.expand_path('../rocket-core/lib', __FILE__))
require 'rocket/version'
COMPONENTS = %w[rocket-core rocket-server rocket-js rocket]
desc "Build current version as a rubygem"
task :build do
COMPONENTS.each {|component|
sh "cd #{component}; rake build; cd .."
}
end
desc "Relase current version to rubygems.org"
task :release => :build do
sh "git tag -am 'Version bump to #{Rocket.version}' v#{Rocket.version}"
sh "git push origin master"
sh "git push origin master --tags"
COMPONENTS.each {|component|
sh "cd #{component}; rake release; cd .."
}
end
desc "Perform installation via rubygems"
task :install do
COMPONENTS.each {|component|
sh "cd #{component}; rake install; cd .."
}
end
desc "Run specs for all components"
task :spec do
COMPONENTS.each {|component|
sh "cd #{component}; rake spec; cd .."
}
end