Sha256: b58a73d1dc3febed6129eede1af4e3c57e6110b627ee06dd9cc6f9f0cf019f03

Contents?: true

Size: 816 Bytes

Versions: 35

Compression:

Stored size: 816 Bytes

Contents

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

Bundler::GemHelper.install_tasks

APP_ROOT = File.dirname(__FILE__)

JETTY_CONFIG = {
	jetty_home: File.join(APP_ROOT, "jetty"),
	jetty_port: 8983,
	startup_wait: 60,
	quiet: true,
	java_opts: ["-Xmx256m", "-XX:MaxPermSize=128m"]
}

require 'jettywrapper'

Jettywrapper.instance.base_path = APP_ROOT

APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'

require 'rspec/core/rake_task'

desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec => ["app:db:migrate", "app:db:test:prepare"])

desc "Run the CI build"
task :ci => ["jetty:clean"] do
  Jettywrapper.wrap(JETTY_CONFIG) do
    Rake::Task['spec'].invoke
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ddr-batch-1.7.2 Rakefile
ddr-batch-1.7.1 Rakefile
ddr-batch-1.7.0 Rakefile
ddr-batch-1.6.1 Rakefile
ddr-batch-1.6.0 Rakefile
ddr-batch-1.6.0.rc1 Rakefile
ddr-batch-1.5.1 Rakefile
ddr-batch-1.5.0 Rakefile
ddr-batch-1.5.0.rc1 Rakefile
ddr-batch-1.4.1 Rakefile
ddr-batch-1.4.0 Rakefile
ddr-batch-1.4.0.rc1 Rakefile
ddr-batch-1.3.0 Rakefile
ddr-batch-1.3.0.rc1 Rakefile
ddr-batch-1.2.0 Rakefile
ddr-batch-1.2.0.rc6 Rakefile
ddr-batch-1.2.0.rc5 Rakefile
ddr-batch-1.2.0.rc4 Rakefile
ddr-batch-1.2.0.rc3 Rakefile
ddr-batch-1.2.0.rc2 Rakefile