Skip to content
Newer
Older
100644 54 lines (46 sloc) 1.41 KB
ef51a62 @freels embedded test server, basic host management commands
freels authored Nov 23, 2010
1 ROOT_DIR = File.expand_path(File.dirname(__FILE__))
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored Jun 24, 2010
2 require 'rubygems'
3 require 'rake'
4
5 begin
6 require 'jeweler'
7 Jeweler::Tasks.new do |gem|
8 gem.name = "gizzmo"
cbbac91 cleanup
Kyle Maxwell authored Jun 24, 2010
9 gem.summary = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
10 gem.description = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored Jun 24, 2010
11 gem.email = "kmaxwell@twitter.com"
cbbac91 cleanup
Kyle Maxwell authored Jun 25, 2010
12 gem.homepage = "http://github.com/twitter/gizzmo"
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored Jun 24, 2010
13 gem.authors = ["Kyle Maxwell"]
14 end
15 Jeweler::GemcutterTasks.new
16 rescue LoadError
17 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
18 end
19
6c15e72 @freels add failing specs for setup_shards
freels authored Aug 31, 2010
20
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored Jun 24, 2010
21 begin
ef51a62 @freels embedded test server, basic host management commands
freels authored Nov 24, 2010
22 require 'spec/rake/spectask'
23 Spec::Rake::SpecTask.new(:spec) do |t|
555a500 @freels Merge branch 'integrated_setup_shards' into revised_manager
freels authored Nov 27, 2010
24 spec_opts = File.expand_path('test/spec.opts', ROOT_DIR)
ef51a62 @freels embedded test server, basic host management commands
freels authored Nov 24, 2010
25 if File.exist? spec_opts
26 t.spec_opts = ['--options', "\"#{spec_opts}\""]
27 end
28 t.spec_files = FileList['test/**/*_spec.rb']
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored Jun 24, 2010
29 end
30 rescue LoadError
ef51a62 @freels embedded test server, basic host management commands
freels authored Nov 24, 2010
31 $stderr.puts "RSpec required to run tests."
fb8b493 rake test works
Kyle Maxwell authored Jun 30, 2010
32 end
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored Jun 24, 2010
33
fb8b493 rake test works
Kyle Maxwell authored Jun 30, 2010
34 task :test do
6c15e72 @freels add failing specs for setup_shards
freels authored Aug 31, 2010
35 puts
fc52cb8 encouragement to RTFM
Kyle Maxwell authored Jun 30, 2010
36 puts "=" * 79
37 puts "You might want to read the README before running tests."
38 puts "=" * 79
39 sleep 2
fb8b493 rake test works
Kyle Maxwell authored Jun 30, 2010
40 exec File.join(File.dirname(__FILE__), "test", "test.sh")
41 end
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored Jun 24, 2010
42
ef51a62 @freels embedded test server, basic host management commands
freels authored Nov 24, 2010
43 task :default => :spec
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored Jun 24, 2010
44
45 require 'rake/rdoctask'
46 Rake::RDocTask.new do |rdoc|
47 version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
49 rdoc.rdoc_dir = 'rdoc'
50 rdoc.title = "gizzmo #{version}"
51 rdoc.rdoc_files.include('README*')
52 rdoc.rdoc_files.include('lib/**/*.rb')
53 end
Something went wrong with that request. Please try again.