forked from javagems/javagems
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
54 lines (47 loc) · 1.58 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
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "javagems"
gem.summary = %Q{A gem for the javagems system}
gem.description = %Q{Provides gem-esque support to Java}
gem.email = "[email protected]"
gem.homepage = "http://www.javagems.org/"
gem.authors = ["gabrielg", "jaknowlden"]
gem.required_rubygems_version = ">=1.3.5"
gem.add_dependency "gemcutter"
gem.add_dependency "bundler"
gem.add_development_dependency "riot"
gem.add_development_dependency "jeweler"
gem.post_install_message = <<EOP
Choosy clojurers choose Thumblemonks
Remember to add ~/.javagem/java/bin to your PATH environment
variable for maximum-JavaGems-fun-times.
EOP
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
task :test => [:check_dependencies, :test_non_mutating, :test_mutating]
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "javagems #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'rake/testtask'
Rake::TestTask.new(:test_non_mutating) do |test|
test.libs << 'lib' << 'test'
test.test_files = FileList['test/**/*_test.rb'].exclude('gem_overrides_test.rb')
test.verbose = true
end
Rake::TestTask.new(:test_mutating) do |test|
test.libs << 'lib' << 'test'
test.test_files = ['test/gem_overrides_test.rb']
test.verbose = true
end