Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5e844a673d
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (51 sloc) 1.381 kb
#-*- mode: ruby -*-
require 'rubygems'
#require 'cucumber'
#require 'cucumber/rake/task'
require 'ruby-maven'
require 'fileutils'
#Cucumber::Rake::Task.new(:features) do |t|
# t.cucumber_opts = "features --format pretty"
#end
task :default => [ :minispec]
task :build do
rmvn = Maven::RubyMaven.new
rmvn.options['-Dmaven.test.skip'] = true
if rmvn.exec('package')
puts 'you find the gem inside "target"'
else
raise 'failed'
end
end
task :compile do
rmvn = Maven::RubyMaven.new
rmvn.options['-Dmaven.test.skip'] = true
unless rmvn.exec('prepare-package')
raise 'failed'
end
end
task :features => [:compile] do
rmvn = Maven::RubyMaven.new
rversion = RUBY_VERSION =~ /^1.8./ ? '--1.8': '--1.9'
rmvn.options['-Djruby.versions'] = '1.6.7.2'#JRUBY_VERSION
rmvn.options['-Djruby.switches'] = rversion
rmvn.options['-Djruby.18and19'] = false
# jruby related debug log
#rmvn.options['-Djruby.verbose'] = true
# lots of maven debug log
#rmvn.options['-X'] = nil
unless rmvn.exec('cucumber')
raise 'failed'
end
end
task :minispec => [:compile] do
require 'bundler/setup'
require 'minitest/autorun'
$LOAD_PATH << "spec"
Dir['spec/*_spec.rb'].each { |f| require File.basename(f.sub(/.rb$/, '')) }
end
task :clean do
FileUtils.rm_rf('target')
FileUtils.rm_f(File.join('lib','jbundler.jar'))
end
# vim: syntax=Ruby
Jump to Line
Something went wrong with that request. Please try again.