forked from brynary/testjour
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
40 lines (33 loc) · 1.14 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
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