Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (49 sloc) 1.569 kB
6098415 Initial commit to hydra.
Nick Gauthier authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "hydra"
8 gem.summary = %Q{Distributed testing toolkit}
b491f76 setup gem
Nick Gauthier authored
9 gem.description = %Q{Spread your tests over multiple machines to test your code faster.}
6098415 Initial commit to hydra.
Nick Gauthier authored
10 gem.email = "nick@smartlogicsolutions.com"
11 gem.homepage = "http://github.com/ngauthier/hydra"
12 gem.authors = ["Nick Gauthier"]
63809a7 added pipe class. docced and tested
Nick Gauthier authored
13 gem.add_development_dependency "shoulda", "= 2.10.3"
05410b1 rspec 2.0 support
Nick Gauthier authored
14 gem.add_development_dependency "rspec", "= 2.0.0.beta.19"
d4f1bf5 cucumber 0.8.5 and warmsnake (experimental)
Nick Gauthier authored
15 gem.add_development_dependency "cucumber", "= 0.8.5"
da1d3f9 removed incomplete file dump since it glitches for local workers and …
Nick Gauthier authored
16 gem.add_development_dependency "therubyracer", "= 0.7.4"
6098415 Initial commit to hydra.
Nick Gauthier authored
17 end
18 Jeweler::GemcutterTasks.new
19 rescue LoadError
20 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
21 end
22
23 require 'rake/testtask'
24 Rake::TestTask.new(:test) do |test|
25 test.libs << 'lib' << 'test'
b37918d restructured tests to rails-style naming conventions
Nick Gauthier authored
26 test.pattern = 'test/**/*_test.rb'
6098415 Initial commit to hydra.
Nick Gauthier authored
27 test.verbose = true
28 end
29
30 begin
31 require 'rcov/rcovtask'
32 Rcov::RcovTask.new do |test|
33 test.libs << 'test'
b37918d restructured tests to rails-style naming conventions
Nick Gauthier authored
34 test.pattern = 'test/**/*_test.rb'
6098415 Initial commit to hydra.
Nick Gauthier authored
35 test.verbose = true
36 end
37 rescue LoadError
38 task :rcov do
8c0359e added ssh library
Nick Gauthier authored
39 abort "RCov is not available. In order to run rcov, you must: gem install rcov"
6098415 Initial commit to hydra.
Nick Gauthier authored
40 end
41 end
42
43 task :test => :check_dependencies
44
45 task :default => :test
46
47 require 'rake/rdoctask'
48 Rake::RDocTask.new do |rdoc|
49 version = File.exist?('VERSION') ? File.read('VERSION') : ""
50
51 rdoc.rdoc_dir = 'rdoc'
52 rdoc.title = "hydra #{version}"
53 rdoc.rdoc_files.include('README*')
54 rdoc.rdoc_files.include('lib/**/*.rb')
64bbaa6 updated rdoc task to use utf-8
Nick Gauthier authored
55 rdoc.options << '--charset=utf-8'
6098415 Initial commit to hydra.
Nick Gauthier authored
56 end
Something went wrong with that request. Please try again.