Sha256: 49f93e5bb1c23b2afedc9131748ca67f22a955c590026608197cefd7cdae6723

Contents?: true

Size: 1008 Bytes

Versions: 2

Compression:

Stored size: 1008 Bytes

Contents

require 'rspec/core'
require 'rspec/core/rake_task'
require 'jettywrapper'
require 'engine_cart/rake_task'

JETTY_ZIP_BASENAME = 'fedora-4/master'
Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/#{JETTY_ZIP_BASENAME}.zip"

RSpec::Core::RakeTask.new(:spec)

desc 'Spin up hydra-jetty and run specs'
task ci: ['engine_cart:clean', 'engine_cart:generate', 'jetty:clean'] do
  puts 'running continuous integration'
  jetty_params = Jettywrapper.load_config
  error = Jettywrapper.wrap(jetty_params) do
    Rake::Task['spec'].invoke
  end
  raise "test failures: #{error}" if error
end

EXTRA_GEMS =<<EOF
gem 'active-fedora', '9.0.0.beta3'
gem 'hydra-head', github: 'projecthydra/hydra-head', branch: 'fedora-4'

EOF

namespace :engine_cart do
  # we're adding some extra stuff into the gemfile beyond what engine_cart gives us by default
  task :inject_gemfile_extras do
    open(File.expand_path('Gemfile', EngineCart.destination), 'a') do |f|
      f.write EXTRA_GEMS
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydra-collections-3.0.0.beta2 tasks/hydra-collections-dev.rake
hydra-collections-3.0.0.beta1 tasks/hydra-collections-dev.rake