-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathRakefile
56 lines (45 loc) · 1.38 KB
/
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
47
48
49
50
51
52
53
54
55
$:.unshift(File.dirname(__FILE__)+"/lib")
require 'rubygems/package_task'
require 'rdoc/task'
require 'rim/version'
DocFiles = [
"README.md", "CHANGELOG"
]
RTextGemSpec = Gem::Specification.new do |s|
s.name = "esr-rim"
s.version = RIM::Version::Version
s.date = Time.now.strftime("%Y-%m-%d")
s.summary = "RIM - multi git tool"
s.description = "RIM lets you work with multiple git repositories from within one single git repository."
s.authors = "ESR Labs GmbH"
s.homepage = "http://github.com/esrlabs/esr-rim"
s.add_dependency('subcommand', '>= 1.0.6')
gemfiles = Rake::FileList.new
gemfiles.include("{lib,test}/**/*")
gemfiles.include(DocFiles)
gemfiles.include("Rakefile")
s.files = gemfiles
s.rdoc_options = ["--main", "README.md", "-x", "test"]
s.extra_rdoc_files = DocFiles
s.bindir = "bin"
s.executables = ["rim"]
end
RDoc::Task.new do |rd|
rd.main = "README.md"
rd.rdoc_files.include(DocFiles)
rd.rdoc_files.include("lib/**/*.rb")
rd.rdoc_dir = "doc"
end
RTextPackageTask = Gem::PackageTask.new(RTextGemSpec) do |p|
p.need_zip = false
end
task :prepare_package_rdoc => :rdoc do
RTextPackageTask.package_files.include("doc/**/*")
end
desc 'run unit tests'
task :unit_tests do
sh "ruby test/unit_tests.rb"
end
task :release => [:prepare_package_rdoc, :package]
task :clobber => [:clobber_rdoc, :clobber_package]
task :default => :run_tests