Sha256: 21ac386948426c2b0ad39f5b1b023467d94d2e325ae488cc3fa2df040d8d612f

Contents?: true

Size: 845 Bytes

Versions: 39

Compression:

Stored size: 845 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 'rspec/core/rake_task'
require 'jettywrapper'

Jettywrapper.instance.base_path = APP_ROOT

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

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

task :default => :spec

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
ddr-models-3.0.0.beta.16 Rakefile
ddr-models-3.0.0.beta.15 Rakefile
ddr-models-3.0.0.beta.14 Rakefile
ddr-models-3.0.0.beta.13 Rakefile
ddr-models-3.0.0.beta.12 Rakefile
ddr-models-3.0.0.beta.11 Rakefile
ddr-models-3.0.0.beta.10 Rakefile
ddr-models-3.0.0.beta.9 Rakefile
ddr-models-3.0.0.beta.8 Rakefile
ddr-models-3.0.0.beta.7 Rakefile
ddr-models-3.0.0.beta.6 Rakefile
ddr-models-3.0.0.beta.4 Rakefile
ddr-models-3.0.0.beta.3 Rakefile
ddr-models-3.0.0.beta.2 Rakefile
ddr-models-3.0.0.beta.1 Rakefile
ddr-models-3.0.0.alpha.4 Rakefile
ddr-models-3.0.0.alpha.3 Rakefile
ddr-models-3.0.0.alpha.2 Rakefile
ddr-models-3.0.0.alpha.1 Rakefile