Sha256: 6f84c82a8a2984be32ebc89ac23a216ea6cbdec5ce2f6f2a2c4c4eba68f47d17
Contents?: true
Size: 1.16 KB
Versions: 9
Compression:
Stored size: 1.16 KB
Contents
require 'rubygems' require 'bundler' require 'bundler/gem_tasks' # require 'version_bumper' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end # Get your spec rake tasks working in RSpec 2.0 require 'rspec/core/rake_task' desc 'Default: run specs.' task :default => :spec desc "Run specs" RSpec::Core::RakeTask.new do |t| # Put spec opts in a file named .rspec in root end require 'yard' YARD::Rake::YardocTask.new do |t| t.options = ["--readme", "README.rdoc"] end desc "Open an irb session preloaded with this library" task :console do sh "irb --simple-prompt -rubygems -I lib -r rgeoserver.rb" end desc "Execute integration tests" task :integration, :jetty_home, :jetty_port, :java_opts do |t, args| require 'jettywrapper' jetty_params = { :jetty_home => args.jetty_home, :java_opts => [args.java_opts], :jetty_port => args.jetty_port, :quiet => true, :startup_wait => 20 } error = Jettywrapper.wrap(jetty_params) do Rake::Task['spec'].invoke end raise "test failures: #{error}" if error end
Version data entries
9 entries across 9 versions & 1 rubygems