Rakefile in schubert-minglr-1.2.0 vs Rakefile in schubert-minglr-1.3.0

- old
+ new

@@ -1,8 +1,10 @@ require 'rubygems' require 'rake' +task :default => [:rcov, :features] + begin require 'jeweler' Jeweler::Tasks.new do |gem| if File.exist?('VERSION.yml') config = YAML.load(File.read('VERSION.yml')) @@ -34,22 +36,21 @@ begin require 'rcov/rcovtask' Rcov::RcovTask.new do |test| test.libs << 'test' + test.rcov_opts = ['--exclude', 'gems', "--text-report", "--only-uncovered"] test.pattern = 'test/**/*_test.rb' test.verbose = true end rescue LoadError task :rcov do abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" end end -task :default => :test - require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| if File.exist?('VERSION.yml') config = YAML.load(File.read('VERSION.yml')) version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" @@ -61,7 +62,19 @@ rdoc.title = "minglr #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end +begin + require 'cucumber' + require 'cucumber/rake/task' -task "dev" => ["test", "gemspec", "build"] + Cucumber::Rake::Task.new(:features) do |t| + t.cucumber_opts = "features --format pretty" + end +rescue LoadError + task :features do + abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber" + end +end + +task "ci" => ["rcov", "features", "gemspec", "build", "install"]