forked from copycopter/copycopter-ruby-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (32 loc) · 965 Bytes
/
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
require 'rubygems'
require 'bundler/setup'
require 'appraisal'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'yard'
desc 'Default: run the specs and features.'
task :default => :spec do
system("rake -s appraisal cucumber;")
end
desc 'Test the copycopter_client plugin.'
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ['--color', "--format progress"]
t.pattern = 'spec/copycopter_client/**/*_spec.rb'
end
desc "Run cucumber features"
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = ['--tags', '~@wip',
'--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb']
end
eval("$specification = begin; #{IO.read('copycopter_client.gemspec')}; end")
Rake::GemPackageTask.new($specification) do |package|
package.need_zip = true
package.need_tar = true
end