public
Description: Distributed test running with autodiscovery via Bonjour (for Cucumber first)
Homepage:
Clone URL: git://github.com/brynary/testjour.git
testjour / Rakefile
100644 41 lines (33 sloc) 1.17 kb
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
require 'rubygems'
require "rake/gempackagetask"
require "rake/clean"
require "spec/rake/spectask"
require "cucumber/rake/task"
require './lib/testjour.rb'
 
Spec::Rake::SpecTask.new do |t|
  t.spec_opts == ["--color"]
end
 
Cucumber::Rake::Task.new do |t|
end
 
desc "Run the specs and the features"
task :default => ["spec", "features"]
 
spec = Gem::Specification.new do |s|
  s.name = "testjour"
  s.version = Testjour::VERSION
  s.author = "Bryan Helmkamp"
  s.email = "bryan" + "@" + "brynary.com"
  s.homepage = "http://github.com/brynary/testjour"
  s.summary = "Distributed test running with autodiscovery via Bonjour (for Cucumber first)"
  s.description = s.summary
  s.executables = "testjour"
  s.files = %w[History.txt MIT-LICENSE.txt README.rdoc Rakefile] + Dir["bin/*"] + Dir["lib/**/*"] + Dir["vendor/**/*"]
end
 
Rake::GemPackageTask.new(spec) do |package|
  package.gem_spec = spec
end
 
CLEAN.include ["pkg", "*.gem", "doc", "ri", "coverage"]
 
desc 'Install the package as a gem.'
task :install => [:clean, :package] do
  gem = Dir['pkg/*.gem'].first
  sh "sudo gem install --no-rdoc --no-ri --local #{gem}"
end